You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zyzzyxdonta
changed the title
Single line with division operator in commented list causes additional line breaks
Single line with binary operator in commented list causes additional line breaks
Nov 6, 2023
Describe the bug
Inside a list, a comment followed by a single line with division operator causes additional lines breaks before each division operator.
To Reproduce
For example, take this code:
And run black on it with the default config.
The resulting formatted code is:
Expected behavior
The formatting doesn't change (apart from maybe the trailing comma).
Environment
Additional context
Formatting does not occur if the expression is enclosed in parentheses, e.g.
It also doesn't happen any more once additional lines are introduced to the lists.
The text was updated successfully, but these errors were encountered: