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
Python version: 3.6.5
Black version: 18.6b4
Does also happen on master: yes
When a list index operation happens on right side of an assignment statement that is over the character limit, black line breaks on the index operation, which IMO is awkward to read.
Hey @dgouldin, thanks for reporting!
Yes, this is definitely a bug in black. #330 and #236 talk about this already, so I'll close this out. Feel free to comment on those if you want to add more details.
As for the use of \: @ambv has a lengthy explanation of why black avoids using it here, but maybe this really should be in the readme somewhere.
Python version: 3.6.5
Black version: 18.6b4
Does also happen on master: yes
When a list index operation happens on right side of an assignment statement that is over the character limit, black line breaks on the index operation, which IMO is awkward to read.
Before black:
After black:
My personal preference (which is obviously just a preference):
If this is intended behavior, is there a PEP-related reason not to use
\
in this case, or is it style choice?The text was updated successfully, but these errors were encountered: