make on submit dict str any
This commit is contained in:
parent
cec4e3c258
commit
978c059f62
@ -102,7 +102,7 @@ class Fieldset(Element):
|
||||
name: Var[Union[str, int, bool]]
|
||||
|
||||
|
||||
def on_submit_event_spec() -> Tuple[Var[Dict[str, str]]]:
|
||||
def on_submit_event_spec() -> Tuple[Var[Dict[str, Any]]]:
|
||||
"""Event handler spec for the on_submit event.
|
||||
|
||||
Returns:
|
||||
|
@ -270,7 +270,7 @@ class Fieldset(Element):
|
||||
"""
|
||||
...
|
||||
|
||||
def on_submit_event_spec() -> Tuple[Var[Dict[str, str]]]: ...
|
||||
def on_submit_event_spec() -> Tuple[Var[Dict[str, Any]]]: ...
|
||||
|
||||
class Form(BaseHTML):
|
||||
@overload
|
||||
@ -337,7 +337,7 @@ class Form(BaseHTML):
|
||||
on_mouse_over: Optional[EventType[[]]] = None,
|
||||
on_mouse_up: Optional[EventType[[]]] = None,
|
||||
on_scroll: Optional[EventType[[]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, str]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||
on_unmount: Optional[EventType[[]]] = None,
|
||||
**props,
|
||||
) -> "Form":
|
||||
|
@ -129,7 +129,7 @@ class FormRoot(FormComponent, HTMLForm):
|
||||
on_mouse_over: Optional[EventType[[]]] = None,
|
||||
on_mouse_up: Optional[EventType[[]]] = None,
|
||||
on_scroll: Optional[EventType[[]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, str]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||
on_unmount: Optional[EventType[[]]] = None,
|
||||
**props,
|
||||
) -> "FormRoot":
|
||||
@ -594,7 +594,7 @@ class Form(FormRoot):
|
||||
on_mouse_over: Optional[EventType[[]]] = None,
|
||||
on_mouse_up: Optional[EventType[[]]] = None,
|
||||
on_scroll: Optional[EventType[[]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, str]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||
on_unmount: Optional[EventType[[]]] = None,
|
||||
**props,
|
||||
) -> "Form":
|
||||
@ -716,7 +716,7 @@ class FormNamespace(ComponentNamespace):
|
||||
on_mouse_over: Optional[EventType[[]]] = None,
|
||||
on_mouse_up: Optional[EventType[[]]] = None,
|
||||
on_scroll: Optional[EventType[[]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, str]]] = None,
|
||||
on_submit: Optional[EventType[Dict[str, Any]]] = None,
|
||||
on_unmount: Optional[EventType[[]]] = None,
|
||||
**props,
|
||||
) -> "Form":
|
||||
|
Loading…
Reference in New Issue
Block a user