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
Bug Report
Mypy infers that iter on Flag return an Iterable of builtins.object instead of the class name.
To Reproduce
from enum import Flag, auto class Test(Flag): A = auto() B = auto() C = auto() reveal_type(set(Test))
https://mypy-play.net/?mypy=latest&python=3.11&gist=0533e027a9f70660afa932e59c9d553d
Expected Behavior
main.py:10: note: Revealed type is "builtins.set[Test]"
Actual Behavior
main.py:10: note: Revealed type is "builtins.set[builtins.object]"
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
Mypy infers that iter on Flag return an Iterable of builtins.object instead of the class name.
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.11&gist=0533e027a9f70660afa932e59c9d553d
Expected Behavior
main.py:10: note: Revealed type is "builtins.set[Test]"
Actual Behavior
main.py:10: note: Revealed type is "builtins.set[builtins.object]"
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: