mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-20 07:19:46 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user