mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
json, ipaddress, locale: Python3.13 updates (#12046)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -96,7 +96,6 @@ __all__ = [
|
||||
"getpreferredencoding",
|
||||
"Error",
|
||||
"setlocale",
|
||||
"resetlocale",
|
||||
"localeconv",
|
||||
"strcoll",
|
||||
"strxfrm",
|
||||
@@ -121,6 +120,9 @@ if sys.version_info >= (3, 11):
|
||||
if sys.version_info < (3, 12):
|
||||
__all__ += ["format"]
|
||||
|
||||
if sys.version_info < (3, 13):
|
||||
__all__ += ["resetlocale"]
|
||||
|
||||
if sys.platform != "win32":
|
||||
__all__ += ["LC_MESSAGES"]
|
||||
|
||||
@@ -133,7 +135,9 @@ def getlocale(category: int = ...) -> tuple[_str | None, _str | None]: ...
|
||||
def setlocale(category: int, locale: _str | Iterable[_str | None] | None = None) -> _str: ...
|
||||
def getpreferredencoding(do_setlocale: bool = True) -> _str: ...
|
||||
def normalize(localename: _str) -> _str: ...
|
||||
def resetlocale(category: int = ...) -> None: ...
|
||||
|
||||
if sys.version_info < (3, 13):
|
||||
def resetlocale(category: int = ...) -> None: ...
|
||||
|
||||
if sys.version_info < (3, 12):
|
||||
def format(
|
||||
|
||||
Reference in New Issue
Block a user