-
Notifications
You must be signed in to change notification settings - Fork 2.8k
parenthesized 'a if b else c' in dict #2018
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.R: duplicateThis issue or pull request already existsThis issue or pull request already existsS: 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.R: duplicateThis issue or pull request already existsThis issue or pull request already existsS: 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?
Fields
Give feedbackNo fields configured for issues without a type.
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