Skip to content

Formatter: walrus_subscript preview style #8887

@MichaReiser

Description

@MichaReiser

Implement Black's walrus_subscript preview style.

Ruff already ships the fix in its stable style but there's a difference for parenthesized walrus operators. I created an issue in the Black repository to align on the desired style.

We should copy over black's new tests and fix the deviation if necessary

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formatterhelp wantedContributions especially welcome

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions