Skip to content

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

Closed
@JukkaL

Description

@JukkaL

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions