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
PEP 585 support seems broken.
To Reproduce
Run mypy over foo: list[int] = [1, 2, 3]
foo: list[int] = [1, 2, 3]
Expected Behavior
No errors.
Actual Behavior
"list" is not subscriptable, use "typing.List" instead error.
"list" is not subscriptable, use "typing.List" instead
Your Environment
The text was updated successfully, but these errors were encountered:
#7907 / #9761
Sorry, something went wrong.
I'm running into this again with the same example. On Python 3.12, Mypy 1.11.0, MacOS 14
I also am seeing this error
error: "type" expects no type arguments, but 1 given
No branches or pull requests
Bug Report
PEP 585 support seems broken.
To Reproduce
Run mypy over
foo: list[int] = [1, 2, 3]
Expected Behavior
No errors.
Actual Behavior
"list" is not subscriptable, use "typing.List" instead
error.Your Environment
The text was updated successfully, but these errors were encountered: