
Modified maybe_remove_trailing_comma to remove trailing commas for typedarglists (in addition to arglists), and updated line split logic to ensure that all lines in a function definition that contain only one arg have a trailing comma.
15 lines
103 B
Python
15 lines
103 B
Python
def f(a,):
|
|
...
|
|
|
|
def f(a:int=1,):
|
|
...
|
|
|
|
# output
|
|
|
|
def f(a):
|
|
...
|
|
|
|
|
|
def f(a: int = 1):
|
|
...
|