Avoid removing whitespace for parenthesized walrus in subscripts #4078
Labels
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
S: accepted
The changes in this design / enhancement issue have been accepted and can be implemented
T: bug
Something isn't working
Describe the bug
Related to the new
walrus_subscript
preview style and has previously been mentioned in this commentBlack removes whitespace around parenthesized walrus operators but preserves them for other binary operations:
I would expect that the walrus operator gets formatted the same as any other binary operator:
To Reproduce
See Playground
The text was updated successfully, but these errors were encountered: