Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -1,6 +1,6 @@
import types
from _weakrefset import WeakSet as WeakSet
from typing import Any, Callable, Dict, Generic, Iterable, Iterator, List, Mapping, MutableMapping, Tuple, Type, TypeVar, overload
from typing import Any, Callable, Generic, Iterable, Iterator, Mapping, MutableMapping, Tuple, Type, TypeVar, overload
from _weakref import (
CallableProxyType as CallableProxyType,
@@ -41,7 +41,7 @@ class WeakValueDictionary(MutableMapping[_KT, _VT]):
def values(self) -> Iterator[_VT]: ... # type: ignore
def items(self) -> Iterator[Tuple[_KT, _VT]]: ... # type: ignore
def itervaluerefs(self) -> Iterator[KeyedRef[_KT, _VT]]: ...
def valuerefs(self) -> List[KeyedRef[_KT, _VT]]: ...
def valuerefs(self) -> list[KeyedRef[_KT, _VT]]: ...
class KeyedRef(ref[_T], Generic[_KT, _T]):
key: _KT
@@ -66,12 +66,12 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
def keys(self) -> Iterator[_KT]: ... # type: ignore
def values(self) -> Iterator[_VT]: ... # type: ignore
def items(self) -> Iterator[Tuple[_KT, _VT]]: ... # type: ignore
def keyrefs(self) -> List[ref[_KT]]: ...
def keyrefs(self) -> list[ref[_KT]]: ...
class finalize:
def __init__(self, __obj: object, __func: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...
def __call__(self, _: Any = ...) -> Any | None: ...
def detach(self) -> Tuple[Any, Any, Tuple[Any, ...], Dict[str, Any]] | None: ...
def peek(self) -> Tuple[Any, Any, Tuple[Any, ...], Dict[str, Any]] | None: ...
def detach(self) -> Tuple[Any, Any, Tuple[Any, ...], dict[str, Any]] | None: ...
def peek(self) -> Tuple[Any, Any, Tuple[Any, ...], dict[str, Any]] | None: ...
alive: bool
atexit: bool