Skip to content

Commit 9bbb93c

Browse files
authored
Typeshed cherry-pick: Add __eq__ to types.MappingProxyType (#9580) (#14507)
This fixes a false positive when using `--strict-equality`. See python/typeshed@d5b88c5 for context.
1 parent d841859 commit 9bbb93c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/typeshed/stdlib/types.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]):
310310
def __getitem__(self, __key: _KT) -> _VT_co: ...
311311
def __iter__(self) -> Iterator[_KT]: ...
312312
def __len__(self) -> int: ...
313+
def __eq__(self, other: object) -> bool: ...
313314
def copy(self) -> dict[_KT, _VT_co]: ...
314315
def keys(self) -> KeysView[_KT]: ...
315316
def values(self) -> ValuesView[_VT_co]: ...

0 commit comments

Comments
 (0)