-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Non-overlapping comparison with Dict and MutableMapping subclass #10275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
(Missed the CLI argument). |
Mypy seems correct here. |
You're right, it works fine with |
The test seems to pass, even though there is no |
OK, it seems like This works at runtime:
|
Looks like |
OK, so it's just a typeshed issue? If so, I'll look at making a fix tomorrow. |
Trivial reproducer (with
--strict-equality
):Outputs:
It seems that it believes a dictionary cannot be equal to a class which inherits from
MutableMapping
.The text was updated successfully, but these errors were encountered: