Line breaks for boolean expressions makes code less readable #908
Labels
F: linebreak
How should we split up lines?
R: duplicate
This issue or pull request already exists
T: style
What do we want Blackened code to look like?
Sometimes if the boolean expressions are too long, black seems to break lines in wrong place which makes the
or
much harder to spot while reading the code.Black v19.3b0
Playground link
Options
--line-length=60
Input
Output
Expected
I would expect to have each part of or in separate line, similar to the following:
Another example
If you change return type to tuple, it has much better formatting:
The text was updated successfully, but these errors were encountered: