-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only the last trailing comma in a statement is magic #1671
Comments
psf/black#1658 psf/black#1671 Signed-off-by: Anders Kaseorg <anders@zulip.com>
psf/black#1658 psf/black#1671 Signed-off-by: Anders Kaseorg <anders@zulip.com>
psf/black#1658 psf/black#1671 Signed-off-by: Anders Kaseorg <anders@zulip.com>
psf/black#1658 psf/black#1671 Signed-off-by: Anders Kaseorg <anders@zulip.com>
This is still broken (noting this because a similar bug with the magic trailing comma was fixed). |
This is still broken on v22.3.0. Does anybody have any workarounds? The only thing I can do now is to put parentheses around the method calls, then (
zero(
one,
)
.two(
three,
)
.four(
five,
)
) Or maybe to kickstart potential PRs, can any |
#2498 has some examples showing this is more general: if a statement contains multiple magic trailing commas, the magic only extends to one of them. |
What's the status of this issue? This is still broken on |
I would expect this to be left alone by the magic trailing comma rule:
But Black implodes it to
Environment (please complete the following information):
Does this bug also happen on master? Yes (playground)
The text was updated successfully, but these errors were encountered: