mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Update sys.pyi for Python3.12 (#10245)
Source: https://github.com/python/cpython/blob/3.12/Python/sysmodule.c Docs: https://github.com/python/cpython/blob/3.12/Doc/library/sys.rst
This commit is contained in:
@@ -359,3 +359,13 @@ if sys.version_info < (3, 8):
|
||||
# as part of the response to CVE-2020-10735
|
||||
def set_int_max_str_digits(maxdigits: int) -> None: ...
|
||||
def get_int_max_str_digits() -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
def getunicodeinternedsize() -> int: ...
|
||||
def deactivate_stack_trampoline() -> None: ...
|
||||
def is_stack_trampoline_active() -> bool: ...
|
||||
# It always exists, but raises on non-linux platforms:
|
||||
if sys.platform == "linux":
|
||||
def activate_stack_trampoline(__backend: str) -> None: ...
|
||||
else:
|
||||
def activate_stack_trampoline(__backend: str) -> NoReturn: ...
|
||||
|
||||
@@ -179,10 +179,6 @@ ssl.OP_LEGACY_SERVER_CONNECT
|
||||
ssl.Options.OP_LEGACY_SERVER_CONNECT
|
||||
ssl.RAND_pseudo_bytes
|
||||
ssl.wrap_socket
|
||||
sys.activate_stack_trampoline
|
||||
sys.deactivate_stack_trampoline
|
||||
sys.getunicodeinternedsize
|
||||
sys.is_stack_trampoline_active
|
||||
tarfile.AbsoluteLinkError
|
||||
tarfile.AbsolutePathError
|
||||
tarfile.FilterError
|
||||
|
||||
Reference in New Issue
Block a user