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: ...