mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -18,14 +18,15 @@ __all__ = [
|
||||
"dngettext",
|
||||
"gettext",
|
||||
"ngettext",
|
||||
"dnpgettext",
|
||||
"dpgettext",
|
||||
"npgettext",
|
||||
"pgettext",
|
||||
]
|
||||
|
||||
if sys.version_info < (3, 11):
|
||||
__all__ += ["bind_textdomain_codeset", "ldgettext", "ldngettext", "lgettext", "lngettext"]
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
__all__ += ["dnpgettext", "dpgettext", "npgettext", "pgettext"]
|
||||
|
||||
class _TranslationsReader(Protocol):
|
||||
def read(self) -> bytes: ...
|
||||
# optional:
|
||||
@@ -37,10 +38,8 @@ class NullTranslations:
|
||||
def add_fallback(self, fallback: NullTranslations) -> None: ...
|
||||
def gettext(self, message: str) -> str: ...
|
||||
def ngettext(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: ...
|
||||
|
||||
def pgettext(self, context: str, message: str) -> str: ...
|
||||
def npgettext(self, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
def info(self) -> dict[str, str]: ...
|
||||
def charset(self) -> str | None: ...
|
||||
if sys.version_info < (3, 11):
|
||||
@@ -156,12 +155,10 @@ def dgettext(domain: str, message: str) -> str: ...
|
||||
def dngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
def gettext(message: str) -> str: ...
|
||||
def ngettext(msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def pgettext(context: str, message: str) -> str: ...
|
||||
def dpgettext(domain: str, context: str, message: str) -> str: ...
|
||||
def npgettext(context: str, msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
def dnpgettext(domain: str, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
def pgettext(context: str, message: str) -> str: ...
|
||||
def dpgettext(domain: str, context: str, message: str) -> str: ...
|
||||
def npgettext(context: str, msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
def dnpgettext(domain: str, context: str, msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
|
||||
if sys.version_info < (3, 11):
|
||||
def lgettext(message: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user