Skip to content

mypy accepts tuple[int] etc. #2428

Closed
Closed

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.

Activity

  1. JukkaL commented on Nov 10, 2016

    @JukkaL
    Collaborator

    This is an old bug, but I couldn't find an existing issue. #999 is closely related -- fixing either of these issues would likely make the remaining issue trivial to fix.

  2. added this to the milestone on Nov 10, 2016
  3. added a commit that references this issue on Mar 14, 2017
    4ca67f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions