-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Black should add parentheses to long values in dict literals #620
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?
Fields
Give feedbackNo fields configured for issues without a type.
Operating system: Linux CentOS 7
Python version: 3.6.6
Black version: 18.9b0
Does also happen on master: Yes (Example on master)
I have this code (line length is greater than allowed)
So Black wrap the line, but without indent :
I find this indent not very readable.
If I add paranthesis, I get the code below, nice formatted in my opinion.
Should not Black add paranthesis in this case?