-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Better error message for assignments incompatible due to invariance #4186
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
This is not related to enums and I don't think it's a bug; it's because of invariance. Because the |
This is not a bug, I am keeping this open so that we can give a better error message, for some reasons it does not work with enums. |
OK, the problem is that we give the better error message only for incompatible arguments, not in assignments. This is therefore easy to fix. |
I taking a look at this. |
There seems to be a problem with enums when inferred and used inside lists. This happens with both mypy 0.540 and mypy 0.520.
Code:
Let me know what other info you need, or any other steps I should take.
Thanks for all the work on such an awesome project.
The text was updated successfully, but these errors were encountered: