Improve lazy translation functions

The lazy versions have the same signature as the non-lazy versions
This commit is contained in:
Anthony Ricaud
2019-08-09 12:37:17 +01:00
parent 5d2efdb80b
commit a9978cc021

View File

@@ -39,16 +39,13 @@ ungettext = ngettext
def pgettext(context: str, message: str) -> str: ...
def npgettext(context: str, singular: str, plural: str, number: int) -> str: ...
gettext_lazy: Callable[[str], str]
gettext_lazy = gettext
ugettext_lazy = ugettext
pgettext_lazy = pgettext
ngettext_lazy = ngettext
ungettext_lazy = ungettext
npgettext_lazy = npgettext
ugettext_lazy: Callable[[str], str]
pgettext_lazy: Callable[[str], str]
def ngettext_lazy(singular: Any, plural: Any, number: Optional[Any] = ...): ...
ungettext_lazy = ngettext_lazy
def npgettext_lazy(context: Any, singular: Any, plural: Any, number: Optional[Any] = ...): ...
def activate(language: str) -> None: ...
def deactivate() -> None: ...