Files
typeshed/stdlib
Jukka Lehtosalo d5b88c552c Add __eq__ to types.MappingProxyType (#9580)
The type has a custom __eq__:
https://github.com/python/cpython/blob/v3.11.1/Objects/descrobject.c#L1906

This helps fix this mypy false positive when using `--strict-equality`:
```
from types import MappingProxyType

p = MappingProxyType({'x': 1})
d = {'x': 1}
print(p == d)  # error: Non-overlapping equality check
```

The fragment prints `True` so the comparison is valid.
2023-01-23 09:55:25 +00:00
..
2022-11-03 15:32:10 +00:00
2021-05-06 18:57:33 +03:00
2022-10-28 15:36:57 +02:00
2022-10-28 11:07:56 +02:00
2022-08-04 23:51:42 +02:00
2022-02-19 12:26:45 -08:00
2023-01-12 22:07:26 +00:00
2022-01-30 16:27:06 -08:00
2021-12-22 20:18:19 -08:00
2022-01-01 14:19:05 +02:00
2022-03-03 15:25:30 -08:00
2022-06-28 14:30:50 +02:00
2022-08-23 12:22:12 -07:00
2022-11-05 13:52:31 -07:00