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

@jakebailey

Description

@jakebailey
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.

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