diff --git a/reflex/components/base/error_boundary.py b/reflex/components/base/error_boundary.py index b35c69a60..83becc034 100644 --- a/reflex/components/base/error_boundary.py +++ b/reflex/components/base/error_boundary.py @@ -12,7 +12,9 @@ from reflex.state import FrontendEventExceptionState from reflex.vars.base import Var -def on_error_spec(error: Var, info: Var[Dict[str, str]]) -> Tuple[Var[str], Var[str]]: +def on_error_spec( + error: Var[Dict[str, str]], info: Var[Dict[str, str]] +) -> Tuple[Var[str], Var[str]]: """The spec for the on_error event handler. Args: diff --git a/reflex/components/base/error_boundary.pyi b/reflex/components/base/error_boundary.pyi index 94b129bdc..c84742851 100644 --- a/reflex/components/base/error_boundary.pyi +++ b/reflex/components/base/error_boundary.pyi @@ -11,7 +11,7 @@ from reflex.style import Style from reflex.vars.base import Var def on_error_spec( - error: Var, info: Var[Dict[str, str]] + error: Var[Dict[str, str]], info: Var[Dict[str, str]] ) -> Tuple[Var[str], Var[str]]: ... class ErrorBoundary(Component):