mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
json, ipaddress, locale: Python3.13 updates (#12046)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -120,10 +120,6 @@ importlib.resources.path
|
||||
importlib.resources.read_binary
|
||||
importlib.resources.read_text
|
||||
io.IOBase._checkClosed
|
||||
ipaddress.IPv4Address.ipv6_mapped
|
||||
json.encoder.encode_basestring
|
||||
json.encoder.encode_basestring_ascii
|
||||
locale.resetlocale
|
||||
mailbox.Maildir.add_flag
|
||||
mailbox.Maildir.get_flags
|
||||
mailbox.Maildir.get_info
|
||||
|
||||
@@ -147,7 +147,11 @@ class _BaseV4:
|
||||
@property
|
||||
def max_prefixlen(self) -> Literal[32]: ...
|
||||
|
||||
class IPv4Address(_BaseV4, _BaseAddress): ...
|
||||
class IPv4Address(_BaseV4, _BaseAddress):
|
||||
if sys.version_info >= (3, 13):
|
||||
@property
|
||||
def ipv6_mapped(self) -> IPv6Address: ...
|
||||
|
||||
class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]): ...
|
||||
|
||||
class IPv4Interface(IPv4Address, _BaseInterface[IPv4Address, IPv4Network]):
|
||||
|
||||
@@ -10,8 +10,8 @@ INFINITY: float
|
||||
|
||||
def py_encode_basestring(s: str) -> str: ... # undocumented
|
||||
def py_encode_basestring_ascii(s: str) -> str: ... # undocumented
|
||||
def encode_basestring(s: str) -> str: ... # undocumented
|
||||
def encode_basestring_ascii(s: str) -> str: ... # undocumented
|
||||
def encode_basestring(s: str, /) -> str: ... # undocumented
|
||||
def encode_basestring_ascii(s: str, /) -> str: ... # undocumented
|
||||
|
||||
class JSONEncoder:
|
||||
item_separator: str
|
||||
|
||||
@@ -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