
Fixes a pathological situation where if a function signature used a trailing comma but was later reformatted to a single line (with the trailing comma removed), Black would change its mind whether a file is Python 3.6-compatible between runs.
19 lines
412 B
Python
19 lines
412 B
Python
def f(
|
|
a,
|
|
**kwargs,
|
|
) -> A:
|
|
return A(
|
|
very_long_argument_name1=very_long_value_for_the_argument,
|
|
very_long_argument_name2=very_long_value_for_the_argument,
|
|
**kwargs,
|
|
)
|
|
|
|
# output
|
|
|
|
def f(a, **kwargs) -> A:
|
|
return A(
|
|
very_long_argument_name1=very_long_value_for_the_argument,
|
|
very_long_argument_name2=very_long_value_for_the_argument,
|
|
**kwargs,
|
|
)
|