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
Currently, Black reformats a long nested call like foo(bar(<long argument list>)) to
foo(
bar(
<long argument list>
)
)
An alternative more compact way would be
foo(bar(
<long argument list>
))
This style is particularly natural when foo(bar is viewed conceptually as a single call to a composed function.
The proposal is to add support to Black for this type of compact formatting (which could also be applied to nested "quasi-calls", like list literals).
Support could be added in several ways:
Add an option to not reformat such compact style.
Add an option to reformat into this compact style whenever possible.
(1.) or (2.), but as default behavior, rather than options.
The text was updated successfully, but these errors were encountered:
@ichard26#2071 does not mention nested function calls. Should I add a comment to #2071 about it, or is the fact that this issue is mentioned in #2071 sufficient?
Currently, Black reformats a long nested call like
foo(bar(<long argument list>))
toAn alternative more compact way would be
This style is particularly natural when
foo(bar
is viewed conceptually as a single call to a composed function.The proposal is to add support to Black for this type of compact formatting (which could also be applied to nested "quasi-calls", like list literals).
Support could be added in several ways:
The text was updated successfully, but these errors were encountered: