mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Use lowercase set, frozenset and deque where possible (#6346)
This commit is contained in:
@@ -378,33 +378,33 @@ class MappingView(Sized):
|
||||
|
||||
class ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]):
|
||||
def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented
|
||||
def __and__(self, o: Iterable[Any]) -> Set[tuple[_KT_co, _VT_co]]: ...
|
||||
def __rand__(self, o: Iterable[_T]) -> Set[_T]: ...
|
||||
def __and__(self, o: Iterable[Any]) -> set[tuple[_KT_co, _VT_co]]: ...
|
||||
def __rand__(self, o: Iterable[_T]) -> set[_T]: ...
|
||||
def __contains__(self, o: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def __reversed__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
|
||||
def __or__(self, o: Iterable[_T]) -> Set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
def __ror__(self, o: Iterable[_T]) -> Set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
def __sub__(self, o: Iterable[Any]) -> Set[tuple[_KT_co, _VT_co]]: ...
|
||||
def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ...
|
||||
def __xor__(self, o: Iterable[_T]) -> Set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
def __rxor__(self, o: Iterable[_T]) -> Set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
def __or__(self, o: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
def __ror__(self, o: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
def __sub__(self, o: Iterable[Any]) -> set[tuple[_KT_co, _VT_co]]: ...
|
||||
def __rsub__(self, o: Iterable[_T]) -> set[_T]: ...
|
||||
def __xor__(self, o: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
def __rxor__(self, o: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _T]: ...
|
||||
|
||||
class KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]):
|
||||
def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undocumented
|
||||
def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ...
|
||||
def __rand__(self, o: Iterable[_T]) -> Set[_T]: ...
|
||||
def __and__(self, o: Iterable[Any]) -> set[_KT_co]: ...
|
||||
def __rand__(self, o: Iterable[_T]) -> set[_T]: ...
|
||||
def __contains__(self, o: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[_KT_co]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def __reversed__(self) -> Iterator[_KT_co]: ...
|
||||
def __or__(self, o: Iterable[_T]) -> Set[_KT_co | _T]: ...
|
||||
def __ror__(self, o: Iterable[_T]) -> Set[_KT_co | _T]: ...
|
||||
def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ...
|
||||
def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ...
|
||||
def __xor__(self, o: Iterable[_T]) -> Set[_KT_co | _T]: ...
|
||||
def __rxor__(self, o: Iterable[_T]) -> Set[_KT_co | _T]: ...
|
||||
def __or__(self, o: Iterable[_T]) -> set[_KT_co | _T]: ...
|
||||
def __ror__(self, o: Iterable[_T]) -> set[_KT_co | _T]: ...
|
||||
def __sub__(self, o: Iterable[Any]) -> set[_KT_co]: ...
|
||||
def __rsub__(self, o: Iterable[_T]) -> set[_T]: ...
|
||||
def __xor__(self, o: Iterable[_T]) -> set[_KT_co | _T]: ...
|
||||
def __rxor__(self, o: Iterable[_T]) -> set[_KT_co | _T]: ...
|
||||
|
||||
class ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]):
|
||||
def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user