Skip to content

mypy accepts tuple[int] etc. #2428

Description

@ilevkivskyi

mypy currently accepts

tuple[int], list[int], dict[int, str]

while all of those fail at runtime. I think those should be flagged as errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions