diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3189191d4..54b08c33c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: entry: python3 scripts/make_pyi.py - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.392 + rev: v1.1.393 hooks: - id: pyright args: [reflex, tests] diff --git a/reflex/utils/pyi_generator.py b/reflex/utils/pyi_generator.py index bd10e1c1c..bd9c94a6e 100644 --- a/reflex/utils/pyi_generator.py +++ b/reflex/utils/pyi_generator.py @@ -622,7 +622,7 @@ def _generate_component_create_functiondef( defaults=[], ) - definition = ast.FunctionDef( + definition = ast.FunctionDef( # pyright: ignore [reportCallIssue] name="create", args=create_args, body=[ # pyright: ignore [reportArgumentType] @@ -684,7 +684,7 @@ def _generate_staticmethod_call_functiondef( else [] ), ) - definition = ast.FunctionDef( + definition = ast.FunctionDef( # pyright: ignore [reportCallIssue] name="__call__", args=call_args, body=[