Unnatural split on a line with a line-comment #1222
Labels
F: comments
The syntactic kind. Not in the language grammar, always on our minds. Best bugs.
F: linebreak
How should we split up lines?
T: style
What do we want Blackened code to look like?
Describe the style change
A line containing a
type: ignore
comment caused a really weird output. It has split an equality operation on the operator which looks very unnatural. Even though the line would fir well into the maximal line length making the split unnecessary.It is probably easiest to see in the example below.
Examples in the current Black style Think of some short code snippets that show
how the current Black style is not great:
Desired style How do you think Black should format the above snippets:
The text was updated successfully, but these errors were encountered: