@@ -155,6 +155,9 @@ def _format_foldable_to_multiple_lines(
155155 "lambda_header" : _format_lambda_header_to_multiple_lines ,
156156 # fake expressions:
157157 "func_args" : _format_args_to_multiple_lines ,
158+ "func_arg_variadic" : lambda e , ec , c : _append_to_expression_context_and_pass (
159+ "..." , e .children [0 ], ec , c
160+ ),
158161 "func_arg_regular" : _format_func_arg_to_multiple_lines ,
159162 "func_arg_inf" : _format_func_arg_to_multiple_lines ,
160163 "func_arg_typed" : _format_func_arg_to_multiple_lines ,
@@ -332,12 +335,12 @@ def _format_func_arg_to_multiple_lines(
332335 expression .children [0 ], expression_context , context
333336 )
334337 if expression .data == "func_arg_typed" and len (expression .children ) == 2 :
335- return [
336- (
337- get_line ( expression .children [1 ]) ,
338- f" { context . indent_string } { expression_to_str ( expression ) } " ,
339- )
340- ]
338+ return _append_to_expression_context_and_pass (
339+ f" { expression . children [ 0 ]. value } : " ,
340+ expression .children [1 ],
341+ expression_context ,
342+ context ,
343+ )
341344 template = {
342345 "func_arg_regular" : "{} = " ,
343346 "func_arg_inf" : "{} := " ,
0 commit comments