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

Iteration over tuples does not show type #416

Closed
jakebailey opened this issue Nov 19, 2018 · 1 comment
Closed

Iteration over tuples does not show type #416

jakebailey opened this issue Nov 19, 2018 · 1 comment
Labels
gen from the generated tests

Comments

@jakebailey
Copy link
Member

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.

@jakebailey jakebailey added the GA label Nov 21, 2018
@karthiknadig karthiknadig removed the GA label Nov 21, 2018
@jakebailey
Copy link
Member Author

jakebailey commented Feb 7, 2019

Fixed via #546.

image

image

@jakebailey jakebailey added the gen from the generated tests label Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
gen from the generated tests
Projects
None yet
Development

No branches or pull requests

2 participants