add types to error boundary

This commit is contained in:
Khaleel Al-Adhami 2024-10-21 18:22:39 -07:00
parent 252928ea53
commit d0d39eeb5c
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -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):