Given this input:
x = {
"xx_xxxxx_xxxxxxxxxx_xxxxxxxxx_xx": (
"xx:xxxxxxxxxxxxxxxxx_xxxxx_xxxxxxx_xxxxxxxxxxx{xx}xxx_xxxxx_xxxxxxxxx_xxxxxxxxxxxx_xxxx"
),
}
The current draft new stable style outputs:
x = {
"xx_xxxxx_xxxxxxxxxx_xxxxxxxxx_xx": "xx:xxxxxxxxxxxxxxxxx_xxxxx_xxxxxxx_xxxxxxxxxxx{xx}xxx_xxxxx_xxxxxxxxx_xxxxxxxxxxxx_xxxx",
}
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:
xx_xxxxx_xxxxxxxxxx_xxxxxxxxx_xx = (
xx_xxxxxxxxxxxxxxxxx_xxxxx_xxxxxxx_xxxxxxxxxxx_xx_xxx_xxxxx_xxxxxxxxx_xxxxxxxxxxxxxxxx
)
Is this bad enough to justify removing wrap_long_dict_values_in_parens from the new stable style? I'm not sure.
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_parensfrom the new stable style? I'm not sure.