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
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: