add types to error boundary
This commit is contained in:
parent
252928ea53
commit
d0d39eeb5c
@ -12,7 +12,9 @@ from reflex.state import FrontendEventExceptionState
|
|||||||
from reflex.vars.base import Var
|
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.
|
"""The spec for the on_error event handler.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
@ -11,7 +11,7 @@ from reflex.style import Style
|
|||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
def on_error_spec(
|
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]]: ...
|
) -> Tuple[Var[str], Var[str]]: ...
|
||||||
|
|
||||||
class ErrorBoundary(Component):
|
class ErrorBoundary(Component):
|
||||||
|
Loading…
Reference in New Issue
Block a user