Delete many redundant method redefinitions (#6877)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-01-09 11:21:03 -08:00
1 parent bb6a6e3421
commit 4e046163b5
26 files changed
-50

No files matched your search

-2
View File
@@ -33,7 +33,6 @@ class WeakValueDictionary(MutableMapping[_KT, _VT]):
def __delitem__(self, v: _KT) -> None: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_KT]: ...
def __str__(self) -> str: ...
def copy(self) -> WeakValueDictionary[_KT, _VT]: ...
# These are incompatible with Mapping
def keys(self) -> Iterator[_KT]: ... # type: ignore[override]
@@ -64,7 +63,6 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
def __delitem__(self, v: _KT) -> None: ...
def __contains__(self, o: object) -> bool: ...
def __iter__(self) -> Iterator[_KT]: ...
def __str__(self) -> str: ...
def copy(self) -> WeakKeyDictionary[_KT, _VT]: ...
# These are incompatible with Mapping
def keys(self) -> Iterator[_KT]: ... # type: ignore[override]