-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Remove optional brackets around unpacking #3203
Copy link
Copy link
Closed
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?
Metadata
Metadata
Assignees
Labels
F: parenthesesToo many parentheses, not enough parentheses, and so on.Too many parentheses, not enough parentheses, and so on.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?
Remove optional brackets around unpacking
Since #2945, Black removes brackets in the following situation:
Perhaps this should be extended to include unpacking assignments.
Examples in the current Black style
Desired style
Additional context
The current style is unstable in situations like the following: