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
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.12&gist=7a3708ec5466904d85b33bc6196c0db9
Code copied here:
import enum import typing class A(enum.Enum): a = 1 b = 2 def __call__(self)->int: return 2 x=A.a print(x()) # okay if x==A.a: print(x()) # error???
Expected Behavior
No error happen
Actual Behavior
error: "Literal[A.a]" not callable [misc]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.12&gist=7a3708ec5466904d85b33bc6196c0db9
Code copied here:
Expected Behavior
No error happen
Actual Behavior
The text was updated successfully, but these errors were encountered: