소스 검색

fix syntax for soy 3.10

Khaleel Al-Adhami 4 달 전
부모
커밋
0e539a208c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      reflex/vars/function.py

+ 2 - 1
reflex/vars/function.py

@@ -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}: ...
     """
                 )