Skip to content

Commit

Permalink
Typeshed cherry-pick: Add __eq__ to types.MappingProxyType (#9580) (#…
Browse files Browse the repository at this point in the history
…14507)

This fixes a false positive when using `--strict-equality`.

See
python/typeshed@d5b88c5
for context.
  • Loading branch information
JukkaL authored Jan 23, 2023
1 parent d841859 commit 9bbb93c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mypy/typeshed/stdlib/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ class MappingProxyType(Mapping[_KT, _VT_co], Generic[_KT, _VT_co]):
def __getitem__(self, __key: _KT) -> _VT_co: ...
def __iter__(self) -> Iterator[_KT]: ...
def __len__(self) -> int: ...
def __eq__(self, other: object) -> bool: ...
def copy(self) -> dict[_KT, _VT_co]: ...
def keys(self) -> KeysView[_KT]: ...
def values(self) -> ValuesView[_VT_co]: ...
Expand Down

0 comments on commit 9bbb93c

Please sign in to comment.