Line splitting on conditional operators should take precendence over splitting on function parameters #1094
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?
Black should split conditionals at conditional operators (i.e.
and
,or
, etc.) when possible, instead of splitting function parameters over multiple lines.Currently, this is how black formats a long conditional:
Ideally, it should be formatted like this:
This appears to be a general issue with splitting conditionals and it looks like it's related to these issues: #815 #1050
The text was updated successfully, but these errors were encountered: