-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
C: preview styleIssues with the preview and unstable style. Add the name of the responsible feature in the title.Issues with the preview and unstable style. Add the name of the responsible feature in the title.T: bugSomething isn't workingSomething isn't working
Description
Describe the bug
TLDR: #3796 ("More concise formatting for dummy implementations") can make stuff longer.
To Reproduce
def long_function_with_sine_params_and_long_return(param, another_one) -> ReturnType:
...which is fine in the current style, is now formatted, in the preview style, as
def long_function_with_sine_params_and_long_return(
param, another_one
) -> ReturnType: ...which is longer than before.
Expected behavior
I am not sure:
- Accept this new behavior?
- Allow
...on a line of its own if appending it to the previous line leads to line breaks? - Disregard trailing
...in line-break computations?
Environment
- Black's version: 23.9.0
- OS and Python version: 3.11.5
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C: preview styleIssues with the preview and unstable style. Add the name of the responsible feature in the title.Issues with the preview and unstable style. Add the name of the responsible feature in the title.T: bugSomething isn't workingSomething isn't working