Skip to content

PEP 585 support is broken. #9873

Closed
Closed
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions