Black doesn't wrap functions with parameter comments #3113
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: bug
Something isn't working
Describe the bug
If a line that exceeds the character limit has parameter comments, the function won't be moved to a new line inside parentheses.
Without parameter comments, Black will move the function inside parentheses.
Black should be consistent with these cases.
To Reproduce
For example, take this code:
And run it with these arguments:
Nothing is changed.
Expected behavior
The first function should be placed within parentheses.
Environment
Also tested on https://black.vercel.app/ on main@f51e53
Additional context
Code snippet on https://black.vercel.app/
The text was updated successfully, but these errors were encountered: