A function with one argument keeps the trailing comma but if there are two it is stripped.
In:
def one(
a,
):
pass
def two(
a,
b,
):
pass
Out
def one(a,):
pass
def two(a, b):
pass
That's a bug, one should be formatted like so:
def one(a):
pass
I made pull request #891 with a potential fix. Please let me know if the approach makes sense and if you have any suggestions for improvement.
Looks like this was fixed in 9394de150ebf0adc426523f46dc08e8b2b2b0b63. Can this be closed?
yep.
Most helpful comment
That's a bug,
oneshould be formatted like so: