Skip to content

mypy accepts tuple[int] etc. #2428

Closed
Closed
@ilevkivskyi

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions