parenthesized 'a if b else c' in dict #2018
Labels
F: parentheses
Too many parentheses, not enough parentheses, and so on.
R: duplicate
This issue or pull request already exists
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?
Examples in the current Black style This code looks terrible, but is unchanged by black:
Desired style If I add parentheses before
"a"
and after"b"
, black converts it to this good-looking code:It would be nice if black would always do this, regardless of whether the original code contains parentheses or not.
Additional context None
The text was updated successfully, but these errors were encountered: