Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import collections
from typing import Any, Generic, Iterable, Iterator, Mapping, Tuple, Type, TypeVar, overload
from typing import Any, Generic, Iterable, Iterator, Mapping, Type, TypeVar, overload
_S = TypeVar("_S")
_KT = TypeVar("_KT")
@@ -13,7 +13,7 @@ class frozendict(Mapping[_KT, _VT], Generic[_KT, _VT]):
@overload
def __init__(self, mapping: Mapping[_KT, _VT]) -> None: ...
@overload
def __init__(self, iterable: Iterable[Tuple[_KT, _VT]]) -> None: ...
def __init__(self, iterable: Iterable[tuple[_KT, _VT]]) -> None: ...
def __getitem__(self, key: _KT) -> _VT: ...
def __contains__(self, key: object) -> bool: ...
def copy(self: _S, **add_or_replace: _VT) -> _S: ...