mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-10 10:26:31 +08:00
[stdlib] Deprecate old functions (#14553)
* [stdlib] Deprecate many functions * Fix typo * Imporove message for asyncio/trsock * Apply suggestions from code review Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Add Python before version * [pre-commit.ci] auto fixes from pre-commit.com hooks * Wrap comment lines * fix the rest --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -44,9 +44,13 @@ class NullTranslations:
|
||||
def info(self) -> dict[str, str]: ...
|
||||
def charset(self) -> str | None: ...
|
||||
if sys.version_info < (3, 11):
|
||||
@deprecated("Deprecated since Python 3.8; removed in Python 3.11.")
|
||||
def output_charset(self) -> str | None: ...
|
||||
@deprecated("Deprecated since Python 3.8; removed in Python 3.11.")
|
||||
def set_output_charset(self, charset: str) -> None: ...
|
||||
@deprecated("Deprecated since Python 3.8; removed in Python 3.11. Use `gettext()` instead.")
|
||||
def lgettext(self, message: str) -> str: ...
|
||||
@deprecated("Deprecated since Python 3.8; removed in Python 3.11. Use `ngettext()` instead.")
|
||||
def lngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
|
||||
|
||||
def install(self, names: Container[str] | None = None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user