Improve formatting for multiline strings wrapped by parentheses with a method call #2113
Labels
F: parentheses
Too many parentheses, not enough parentheses, and so on.
T: style
What do we want Blackened code to look like?
Describe the style change
Multiline strings wrapped by parentheses with a method call are formatted in a questionable way. While I'm not sure what would be the best output, the desired style I provided is probably a good next step. The main point is to strip the unnecessary parentheses which cause Black to do some ... questionably looking stuff.
Examples in the current Black style
to:
Desired style (open to debate)
Additional context
The desired style depends on GH-256 being resolved first.
The examples provided here are from instability issues: GH-958 & GH-954. The examples are no longer unstable, but their reformatted equivalents aren't good, hence this issue.
The text was updated successfully, but these errors were encountered: