mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-17 16:45:05 +08:00
add missing functions in sys (#6001)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user