-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Problems with Enums: iteration, __new__ #3622
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
The
|
This seems to be partially related to #3210, and as I mentioned there, this may be solved easily by structural subtyping. However, the |
The (Haven't had time to test it to make sure though) |
Oh right, this is a near-duplicate of the typeshed issue I opened. I think there may be more regressions here since the last mypy release, so I'll look into this more (hopefully tonight). |
I believe this is a duplicate of #2824 |
More general: python/typeshed#1595 |
Closing as a duplicate of #2824 |
Consider the following perfectly valid python code:
This probably has to do with support for metaclasses. Here is the output from mypy and python.
The text was updated successfully, but these errors were encountered: