Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Iteration over tuples does not show type #416

Description

t = ((1,), (2,), (3,))
for x in t:
    x

t is shown as tuple[tuple[int], tuple[int], tuple[int]] which is correct, but x has no type. You can switch it to a list and it will work, like:

l = [(1,), (2,), (3,)]
for x in l:
    x

And now x is of type tuple[int].

Found in #334.

Activity

  1. jakebailey commented on Feb 7, 2019

    @jakebailey
    MemberAuthor

    Fixed via #546.

    image

    image

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

    genfrom the generated tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions