mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-17 11:31:25 +08:00
Add mypy error codes to '# type: ignore' comments (#6379)
This commit is contained in:
1 parent
1278fa86e2
commit
a5bc1e037f
74 files changed
+218
-202
No files matched your search
+6
-6
@@ -37,9 +37,9 @@ class WeakValueDictionary(MutableMapping[_KT, _VT]):
|
||||
def __str__(self) -> str: ...
|
||||
def copy(self) -> WeakValueDictionary[_KT, _VT]: ...
|
||||
# These are incompatible with Mapping
|
||||
def keys(self) -> Iterator[_KT]: ... # type: ignore
|
||||
def values(self) -> Iterator[_VT]: ... # type: ignore
|
||||
def items(self) -> Iterator[tuple[_KT, _VT]]: ... # type: ignore
|
||||
def keys(self) -> Iterator[_KT]: ... # type: ignore[override]
|
||||
def values(self) -> Iterator[_VT]: ... # type: ignore[override]
|
||||
def items(self) -> Iterator[tuple[_KT, _VT]]: ... # type: ignore[override]
|
||||
def itervaluerefs(self) -> Iterator[KeyedRef[_KT, _VT]]: ...
|
||||
def valuerefs(self) -> list[KeyedRef[_KT, _VT]]: ...
|
||||
def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ...
|
||||
@@ -68,9 +68,9 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
|
||||
def __str__(self) -> str: ...
|
||||
def copy(self) -> WeakKeyDictionary[_KT, _VT]: ...
|
||||
# These are incompatible with Mapping
|
||||
def keys(self) -> Iterator[_KT]: ... # type: ignore
|
||||
def values(self) -> Iterator[_VT]: ... # type: ignore
|
||||
def items(self) -> Iterator[tuple[_KT, _VT]]: ... # type: ignore
|
||||
def keys(self) -> Iterator[_KT]: ... # type: ignore[override]
|
||||
def values(self) -> Iterator[_VT]: ... # type: ignore[override]
|
||||
def items(self) -> Iterator[tuple[_KT, _VT]]: ... # type: ignore[override]
|
||||
def keyrefs(self) -> list[ref[_KT]]: ...
|
||||
def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ...
|
||||
@overload
|
||||
|
||||
Reference in new issue
Block a user