Hello,
I've noticed that the number argument to ngettext is different between the lazy and non lazy versions
|
def ngettext(singular: str, plural: str, number: float) -> str: ... |
|
def pgettext(context: str, message: str) -> str: ... |
|
def npgettext(context: str, singular: str, plural: str, number: int) -> str: ... |
|
|
|
# lazy evaluated translation functions |
|
def gettext_lazy(message: str) -> _StrPromise: ... |
|
def pgettext_lazy(context: str, message: str) -> _StrPromise: ... |
|
def ngettext_lazy(singular: str, plural: str, number: int | str | None = None) -> _StrPromise: ... |
|
def npgettext_lazy(context: str, singular: str, plural: str, number: int | str | None = None) -> _StrPromise: ... |
In the non lazy version it's float but in the lazy version it's int | str | None
Should they both be int | str | None?
Hello,
I've noticed that the
numberargument to ngettext is different between the lazy and non lazy versionsdjango-stubs/django-stubs/utils/translation/__init__.pyi
Lines 12 to 20 in 789d40f
In the non lazy version it's
floatbut in the lazy version it'sint | str | NoneShould they both be
int | str | None?