Skip to content

Commit 552de42

Browse files
authored
Merge pull request #126 from rik/lazy-translation
Improve lazy translation functions
2 parents 5d2efdb + a9978cc commit 552de42

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

django-stubs/utils/translation/__init__.pyi

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,13 @@ ungettext = ngettext
3939
def pgettext(context: str, message: str) -> str: ...
4040
def npgettext(context: str, singular: str, plural: str, number: int) -> str: ...
4141

42-
gettext_lazy: Callable[[str], str]
42+
gettext_lazy = gettext
43+
ugettext_lazy = ugettext
44+
pgettext_lazy = pgettext
45+
ngettext_lazy = ngettext
46+
ungettext_lazy = ungettext
47+
npgettext_lazy = npgettext
4348

44-
ugettext_lazy: Callable[[str], str]
45-
pgettext_lazy: Callable[[str], str]
46-
47-
def ngettext_lazy(singular: Any, plural: Any, number: Optional[Any] = ...): ...
48-
49-
ungettext_lazy = ngettext_lazy
50-
51-
def npgettext_lazy(context: Any, singular: Any, plural: Any, number: Optional[Any] = ...): ...
5249
def activate(language: str) -> None: ...
5350
def deactivate() -> None: ...
5451

0 commit comments

Comments
 (0)