From 3819f8e6ffb5d43b6a2aa158c18e9735a69631bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Gr=C3=BCbel?= Date: Sat, 4 Sep 2021 23:30:13 +0900 Subject: [PATCH] add missing functions in sys (#6001) --- stdlib/sys.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stdlib/sys.pyi b/stdlib/sys.pyi index 372a3364c..e60a58c02 100644 --- a/stdlib/sys.pyi +++ b/stdlib/sys.pyi @@ -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: ...