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:
Steve Dignam
2020-09-11 17:17:31 -04:00
committed by GitHub
parent 462c830194
commit b388662302

View File

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