-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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?
Description
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)
my_dict = {
'a key in my dict': deformation_rupture_mean * constraint_rupture_mean / 100.0
}
So Black wrap the line, but without indent :
my_dict = {
"a key in my dict": deformation_rupture_mean
* constraint_rupture_mean
/ 100.0
}
I find this indent not very readable.
If I add paranthesis, I get the code below, nice formatted in my opinion.
my_dict = {
"a key in my dict": (
deformation_rupture_mean * constraint_rupture_mean / 100.0
)
}
Should not Black add paranthesis in this case?
jdufresne, deliro, tomprince, landmaj, uhbif19 and 29 more
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?