mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user