fix syntax for soy 3.10
This commit is contained in:
parent
a7230f1f45
commit
0e539a208c
@ -1802,12 +1802,13 @@ def _generate_overloads_for_function_var_call(maximum_args: int = 4) -> str:
|
||||
)
|
||||
]
|
||||
function_type_hint = f"""FunctionVar[ReflexCallable[[{", ".join(required_params + optional_params)}], {return_type}]]"""
|
||||
NEWLINE = "\n"
|
||||
overloads.append(
|
||||
f"""
|
||||
@overload
|
||||
def call(
|
||||
self: {function_type_hint},
|
||||
{",\n ".join(required_args + optional_args)}
|
||||
{"," + NEWLINE + " ".join(required_args + optional_args)}
|
||||
) -> {return_type_var}: ...
|
||||
"""
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user