mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
gc: add freeze, unfreeze, get_freeze_count (#4532)
These were introduced in Python 3.7 https://docs.python.org/3/library/gc.html
This commit is contained in:
@@ -23,6 +23,11 @@ if sys.version_info >= (3, 8):
|
||||
else:
|
||||
def get_objects() -> List[Any]: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def freeze() -> None: ...
|
||||
def unfreeze() -> None: ...
|
||||
def get_freeze_count() -> int: ...
|
||||
|
||||
def get_referents(*objs: Any) -> List[Any]: ...
|
||||
def get_referrers(*objs: Any) -> List[Any]: ...
|
||||
def get_stats() -> List[Dict[str, Any]]: ...
|
||||
|
||||
Reference in New Issue
Block a user