Skip to content

formats assert f(a,) == (b) and assert f(a,) == b very differently #15842

Open
@rdaysky

Description

@rdaysky

Description

ruff format transforms

assert f(a,) == (b)
assert f(a,) == b

into

assert f(
    a,
) == (b)
assert (
    f(
        a,
    )
    == b
)

which doesn’t make too much sense.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formatterstyleHow should formatted code look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions