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
with \
ZSTFile(nodes_file, 'w') asnodes_writer, \
ZSTFile(edges_file, 'w') asedges_writer:
Additional context Add any other context about the problem here.
This is a well-known place where backslashes are a valid form of line continuation in Python. It makes the separation between lines a lot clearer.
I know this could be rewritten using ExitStack, but I don't think this is a good reason for Black to generate unreadable lines by default when people are not using ExitStack.
The text was updated successfully, but these errors were encountered:
Describe the style change Multi-lines with block should be allowed to use backslashes to wrap their lines.
Examples in the current Black style
Desired style
Additional context Add any other context about the problem here.
This is a well-known place where backslashes are a valid form of line continuation in Python. It makes the separation between lines a lot clearer.
I know this could be rewritten using ExitStack, but I don't think this is a good reason for Black to generate unreadable lines by default when people are not using ExitStack.
The text was updated successfully, but these errors were encountered: