Skip to content

Redundant parentheses in for loop unpacking #2338

Closed
@felix-hilden

Description

Related to tuple unpacking opinions in #445.

Describe the style change
Unnecessary parentheses in for loop variable unpacking should be removed.

Examples in the current Black style

for (a, b) in c:
    pass

Desired style

for a, b in c:
    pass

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    F: parenthesesToo many parentheses, not enough parentheses, and so on.T: styleWhat do we want Blackened code to look like?

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions