Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)

This commit is contained in:
Alex Waygood
2022-01-18 15:14:03 +00:00
committed by GitHub
parent aa885ecd65
commit 8af5e0d340
264 changed files with 2217 additions and 2411 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, List, Tuple
from typing import Any
def enable() -> None: ...
def disable() -> None: ...
@@ -6,15 +6,15 @@ def isenabled() -> bool: ...
def collect(generation: int = ...) -> int: ...
def set_debug(flags: int) -> None: ...
def get_debug() -> int: ...
def get_objects() -> List[Any]: ...
def get_objects() -> list[Any]: ...
def set_threshold(threshold0: int, threshold1: int = ..., threshold2: int = ...) -> None: ...
def get_count() -> Tuple[int, int, int]: ...
def get_threshold() -> Tuple[int, int, int]: ...
def get_referrers(*objs: Any) -> List[Any]: ...
def get_referents(*objs: Any) -> List[Any]: ...
def get_count() -> tuple[int, int, int]: ...
def get_threshold() -> tuple[int, int, int]: ...
def get_referrers(*objs: Any) -> list[Any]: ...
def get_referents(*objs: Any) -> list[Any]: ...
def is_tracked(obj: Any) -> bool: ...
garbage: List[Any]
garbage: list[Any]
DEBUG_STATS: int
DEBUG_COLLECTABLE: int