We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using Python 3.4 with the typing module (v3.5.3.0) from PyPi and MyPy (v0.501), the following code:
typing
from enum import Enum class Color(Enum): red = 1 green = 2 blue = 3 for color in Color: print(color)
triggers MyPy to report the following errors:
iter_enum.py:8: error: Iterable expected iter_enum.py:8: error: "Color" has no attribute "__iter__"
That seems incorrect as the script runs without errors producing the following output:
Color.red Color.green Color.blue
The text was updated successfully, but these errors were encountered:
I'm sorry. Wrong project. And it has already been solved in MyPy. See: python/mypy#2305
Sorry, something went wrong.
No branches or pull requests
Using Python 3.4 with the
typing
module (v3.5.3.0) from PyPi and MyPy (v0.501), the following code:triggers MyPy to report the following errors:
That seems incorrect as the script runs without errors producing the following output:
The text was updated successfully, but these errors were encountered: