Closed ryanashcraft closed 6 years ago
Before, printArguments seemed to assume all args were on the same line, resulting in mixed-up default assignments.
printArguments
Here's the new test case in default_args.py without the change:
default_args.py
./node_modules/.bin/prettier --plugin=. --parser=python tests/python_default_args/default_args.py def hello(x, a=123, b=456): print("hello world", a) def my_func_with_many_args( self, var_a=None, var_b, var_c, var_d=None, var_e, var_f, var_g=None, var_h, var_i=None, var_j, =None ): pass
Thank you!
Nice!
Before,
printArguments
seemed to assume all args were on the same line, resulting in mixed-up default assignments.Here's the new test case in
default_args.py
without the change: