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
I didn't know quite how to word the title, but I'm basically suggesting a way to write streams of transformations in a style similar to this example in the Expression package.
Many Python formatters (like Ruff) will put the entire expressiion on one line, until it's total length would exceed some max line limit. This severely affects the readability of the code. It's better than nested function calls, but not by very much.
Until they resolve that (e.g., see astral-sh/ruff#8598), I'd like to be able to write the following:
I didn't know quite how to word the title, but I'm basically suggesting a way to write streams of transformations in a style similar to this example in the Expression package.
In other words, consider the following:
Many Python formatters (like Ruff) will put the entire expressiion on one line, until it's total length would exceed some max line limit. This severely affects the readability of the code. It's better than nested function calls, but not by very much.
Until they resolve that (e.g., see astral-sh/ruff#8598), I'd like to be able to write the following:
The comma after
list
would prevent the formatter from trying to put everything on the same line, which is crucial for readability.The text was updated successfully, but these errors were encountered: