-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrap_long_dict_values_in_parens can remove parentheses #4158
Labels
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
T: bug
Something isn't working
Comments
JelleZijlstra
added
T: bug
Something isn't working
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
labels
Jan 20, 2024
Interestingly enough, it looks like |
cobaltt7
added a commit
to cobaltt7/black
that referenced
this issue
Dec 8, 2024
cobaltt7
added a commit
to cobaltt7/black
that referenced
this issue
Dec 23, 2024
cobaltt7
added a commit
to cobaltt7/black
that referenced
this issue
Dec 23, 2024
cobaltt7
added a commit
to cobaltt7/black
that referenced
this issue
Jan 13, 2025
JelleZijlstra
added a commit
to cobaltt7/black
that referenced
this issue
Jan 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
T: bug
Something isn't working
Given this input:
The current draft new stable style outputs:
This is because the string is long enough that it doesn't fit within the line length even if it's wrapped in parentheses.
However, the new style feels worse: it's over the line length either way, but it's a lot more over the line length in the new formatting.
The new style is consistent with our formatting in a few other cases, however. For example, we also remove the parentheses in:
Is this bad enough to justify removing
wrap_long_dict_values_in_parens
from the new stable style? I'm not sure.The text was updated successfully, but these errors were encountered: