single element tuples in yield expressions are not parenthesized #3851
Labels
S: accepted
The changes in this design / enhancement issue have been accepted and can be implemented
T: style
What do we want Blackened code to look like?
Describe the style change
Unlike other expression level single element tuples, single element tuples in yield expressions (e.g.
yield 1,
) are currently not parenthesized. This is inconsistent, they should also be parenthesized.Examples in the current Black style
Input:
Output:
Desired style
Additional context
black 23.7.0
The text was updated successfully, but these errors were encountered: