-
-
Notifications
You must be signed in to change notification settings - Fork 500
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
What's wrong
Errors when passing gettext_lazy
strings to parameters expecting strings like verbose_name
and help_text
on model fields:
error: Argument "verbose_name" to "PositiveBigIntegerField" has incompatible type
"_StrPromise"; expected "Optional[str]" [arg-type]
null=True, blank=True, verbose_name=_("number")
(where _
is defined as from django.utils.translation import gettext_lazy as _
)
This was introduced in #689
How is that should be
_StrPromise
should be able to be passed as a str
.
System information
- OS: MacOS 12.4
python
version: 3.10django
version: 4.1mypy
version: 0.971django-stubs
version: masterdjango-stubs-ext
version: master
flaeppe, qi55wyqu and StefanBrand
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working