Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 585 support is broken. #9873

Closed
ghost opened this issue Jan 3, 2021 · 3 comments
Closed

PEP 585 support is broken. #9873

ghost opened this issue Jan 3, 2021 · 3 comments
Labels
bug mypy got something wrong

Comments

@ghost
Copy link

ghost commented Jan 3, 2021

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

  • Mypy version used: 0.790
  • Python version used: 3.9.1
  • Operating system and version: Windows 10 20H2
@ghost ghost added the bug mypy got something wrong label Jan 3, 2021
@hauntsaninja
Copy link
Collaborator

#7907 / #9761

@Tshimanga
Copy link

I'm running into this again with the same example. On Python 3.12, Mypy 1.11.0, MacOS 14

@Tshimanga
Copy link

I also am seeing this error

error: "type" expects no type arguments, but 1 given

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

2 participants