-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
pythonversion: 3.10djangoversion: 4.1mypyversion: 0.971django-stubsversion: masterdjango-stubs-extversion: master
flaeppe, qi55wyqu and StefanBrand
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working