Skip to content

Wrapping of condition within generator #24

@PeterJCLaw

Description

@PeterJCLaw

Given:

all(
    x or x.upper()
    for x in ""
)

Wrapping the or gives:

all(
    x or
    x.upper()
    for x in ""
)

Where I had expected:

all(
    (
        x or
        x.upper()
    )
    for x in ""
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions