Various py311 removals (#7836)

This commit is contained in:
Alex Waygood
2022-05-17 01:28:13 +01:00
committed by GitHub
parent 87abd8a39f
commit e9526faf40
7 changed files with 25 additions and 16 deletions

View File

@@ -78,9 +78,7 @@ class NullTranslations:
def _parse(self, fp: _TranslationsReader) -> None: ...
def add_fallback(self, fallback: NullTranslations) -> None: ...
def gettext(self, message: str) -> str: ...
def lgettext(self, message: str) -> str: ...
def ngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
def lngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
if sys.version_info >= (3, 8):
def pgettext(self, context: str, message: str) -> str: ...
def npgettext(self, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
@@ -90,6 +88,8 @@ class NullTranslations:
if sys.version_info < (3, 11):
def output_charset(self) -> str | None: ...
def set_output_charset(self, charset: str) -> None: ...
def lgettext(self, message: str) -> str: ...
def lngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
def install(self, names: Container[str] | None = ...) -> None: ...