black breaks long statement within []
and not around and
#1974
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?
Describe the bug A clear and concise description of what the bug is.
black
replaces:with
It's subjective (and apologies if this should be a style issue, not a bug), but because the
and
has lower precedence than the conditionals around it, I would find it easier to read ifblack
created teh newline around theand
:This does require a backslash, so reasonable people could disagree :) . I skimmed black's style guide, but didn't see a case representing this. Please close this issue if I'm mistaken about this as a bug.
To Reproduce Steps to reproduce the behavior:
Environment (please complete the following information):
Does this bug also happen on master? To answer this, you have two options:
See the black playground
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: