massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / gc.pyi
1 import sys
2 from typing import Any
3
4 DEBUG_COLLECTABLE: int
5 DEBUG_LEAK: int
6 DEBUG_SAVEALL: int
7 DEBUG_STATS: int
8 DEBUG_UNCOLLECTABLE: int
9 callbacks: list[Any]
10 garbage: list[Any]
11
12 def collect(generation: int = ...) -> int: ...
13 def disable() -> None: ...
14 def enable() -> None: ...
15 def get_count() -> tuple[int, int, int]: ...
16 def get_debug() -> int: ...
17
18 if sys.version_info >= (3, 8):
19     def get_objects(generation: int | None = ...) -> list[Any]: ...
20
21 else:
22     def get_objects() -> list[Any]: ...
23
24 if sys.version_info >= (3, 7):
25     def freeze() -> None: ...
26     def unfreeze() -> None: ...
27     def get_freeze_count() -> int: ...
28
29 def get_referents(*objs: Any) -> list[Any]: ...
30 def get_referrers(*objs: Any) -> list[Any]: ...
31 def get_stats() -> list[dict[str, Any]]: ...
32 def get_threshold() -> tuple[int, int, int]: ...
33 def is_tracked(__obj: Any) -> bool: ...
34
35 if sys.version_info >= (3, 9):
36     def is_finalized(__obj: Any) -> bool: ...
37
38 def isenabled() -> bool: ...
39 def set_debug(__flags: int) -> None: ...
40 def set_threshold(threshold0: int, threshold1: int = ..., threshold2: int = ...) -> None: ...