mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 20:31:32 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import sys
|
||||
from typing import Any, Dict, List, Tuple
|
||||
from typing import Any, Tuple
|
||||
|
||||
DEBUG_COLLECTABLE: int
|
||||
DEBUG_LEAK: int
|
||||
DEBUG_SAVEALL: int
|
||||
DEBUG_STATS: int
|
||||
DEBUG_UNCOLLECTABLE: int
|
||||
callbacks: List[Any]
|
||||
garbage: List[Any]
|
||||
callbacks: list[Any]
|
||||
garbage: list[Any]
|
||||
|
||||
def collect(generation: int = ...) -> int: ...
|
||||
def disable() -> None: ...
|
||||
@@ -16,19 +16,19 @@ def get_count() -> Tuple[int, int, int]: ...
|
||||
def get_debug() -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def get_objects(generation: int | None = ...) -> List[Any]: ...
|
||||
def get_objects(generation: int | None = ...) -> list[Any]: ...
|
||||
|
||||
else:
|
||||
def get_objects() -> List[Any]: ...
|
||||
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]]: ...
|
||||
def get_referents(*objs: Any) -> list[Any]: ...
|
||||
def get_referrers(*objs: Any) -> list[Any]: ...
|
||||
def get_stats() -> list[dict[str, Any]]: ...
|
||||
def get_threshold() -> Tuple[int, int, int]: ...
|
||||
def is_tracked(__obj: Any) -> bool: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user