You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting it aligned by the value sounds messy, given the length of the key may differ greatly - and esp if the length of the key is very long it makes it incredibly messy
adict= {
my_function_call(arg1, arg2, arg3, 300+25*99): "long longlonglonglonglonglonglonglong""long long value",
my_function_call(arg1, arg2, arg3): "long longlonglonglonglonglonglonglong""long long value",
}
It should probably get wrapped in parentheses (easy to implement, something similar to #3899) or get indented one step further in though:
a_dict= {
"key1": "value1",
"key2": "long longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong""long long value",
"key3": (
"long longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong""long long value"
),
}
Describe the bug
Indentation of split string in dict would be better align to the value rather than key
To Reproduce
For example, take this code:
Expected behavior
I think it would be visually more pleasing to have it aligned by value
currently it is aligns it by key
The text was updated successfully, but these errors were encountered: