Skip to content

For loop parse error with single-item tuple lvalue #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JukkaL opened this issue Dec 21, 2014 · 1 comment
Closed

For loop parse error with single-item tuple lvalue #543

JukkaL opened this issue Dec 21, 2014 · 1 comment
Labels
bug mypy got something wrong

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Dec 21, 2014

This is valid Python but mypy doesn't accept it (Parse error before in):

for x, in [(1,), (2,), (3,)]:
    print(x)
@JukkaL JukkaL added bug mypy got something wrong priority labels Dec 21, 2014
@JukkaL
Copy link
Collaborator Author

JukkaL commented Dec 21, 2014

This also affects list comprehensions:

print([x for x, in [(4,)]])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

1 participant