-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
reversed(Enum) #3349
Comments
Is it not precisely #3210 ? |
It looks very similar, but I propose to keep this open, so that we will not forget to add this example to tests when fixing #3210. |
Explain to me again why this is not a duplicate of #3210? If we want to remember to add both examples to the tests we can just add this example to #3210. E.g. from enum import Enum
class E(Enum):
one = 1
reveal_type(list(E)) # 'builtins.list[enum.Enum*]'
reveal_type(reversed(E)) # 'typing.Iterator[enum.Enum*]' |
All examples in this issue now work correctly on mypy master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a semi-continuation of #2891, using mypy 0.510.
Running mypy gives this error
Line 11 is the 2nd for loop.
The text was updated successfully, but these errors were encountered: