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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
(馃悶) False positive for explicit Any
with inferred Type[type]
#11467
Comments
I don't see any errors when I run mypy on this code sample. I confirmed I'm running the latest published version. Can you confirm which version you're using? |
Thanks. I'm able to repro the problem with the "--disallow-any-expr" option enabled. |
This could be the intended behavior. I suspect that |
I think it's triggering the reveal_type(type)
|
but strange that it's not complaining with a bare |
This sounds more likely actually. But seems wrong to me. |
t1 = type # error: Expression type contains "Any" (has type "Type[type]")
t2: t1[str] = str # error: "type" expects no type arguments, but 1 given hmmmmmmmm |
If I have |
Any
with inferred Type[type]
Any
with inferred Type[type]
The text was updated successfully, but these errors were encountered: