add missing functions in sys (#6001)

This commit is contained in:
Anton Grübel
2021-09-04 23:30:13 +09:00
committed by GitHub
parent 832a24c8a1
commit 3819f8e6ff

View File

@@ -141,6 +141,7 @@ class _implementation:
version: _version_info
hexversion: int
cache_tag: str
_multiarch: str
int_info: _int_info
@@ -168,6 +169,7 @@ def exc_info() -> _OptExcInfo: ...
# sys.exit() accepts an optional argument of anything printable
def exit(__status: object = ...) -> NoReturn: ...
def getallocatedblocks() -> int: ...
def getdefaultencoding() -> str: ...
if sys.platform != "win32":
@@ -246,3 +248,7 @@ class _asyncgen_hooks(Tuple[_AsyncgenHook, _AsyncgenHook]):
def get_asyncgen_hooks() -> _asyncgen_hooks: ...
def set_asyncgen_hooks(firstiter: _AsyncgenHook = ..., finalizer: _AsyncgenHook = ...) -> None: ...
if sys.version_info >= (3, 7):
def get_coroutine_origin_tracking_depth() -> int: ...
def set_coroutine_origin_tracking_depth(depth: int) -> None: ...