make on submit dict str any

This commit is contained in:
Khaleel Al-Adhami 2024-10-28 16:11:07 -07:00
parent cec4e3c258
commit 978c059f62
3 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ class Fieldset(Element):
name: Var[Union[str, int, bool]] 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. """Event handler spec for the on_submit event.
Returns: Returns:

View File

@ -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): class Form(BaseHTML):
@overload @overload
@ -337,7 +337,7 @@ class Form(BaseHTML):
on_mouse_over: Optional[EventType[[]]] = None, on_mouse_over: Optional[EventType[[]]] = None,
on_mouse_up: Optional[EventType[[]]] = None, on_mouse_up: Optional[EventType[[]]] = None,
on_scroll: 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, on_unmount: Optional[EventType[[]]] = None,
**props, **props,
) -> "Form": ) -> "Form":

View File

@ -129,7 +129,7 @@ class FormRoot(FormComponent, HTMLForm):
on_mouse_over: Optional[EventType[[]]] = None, on_mouse_over: Optional[EventType[[]]] = None,
on_mouse_up: Optional[EventType[[]]] = None, on_mouse_up: Optional[EventType[[]]] = None,
on_scroll: 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, on_unmount: Optional[EventType[[]]] = None,
**props, **props,
) -> "FormRoot": ) -> "FormRoot":
@ -594,7 +594,7 @@ class Form(FormRoot):
on_mouse_over: Optional[EventType[[]]] = None, on_mouse_over: Optional[EventType[[]]] = None,
on_mouse_up: Optional[EventType[[]]] = None, on_mouse_up: Optional[EventType[[]]] = None,
on_scroll: 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, on_unmount: Optional[EventType[[]]] = None,
**props, **props,
) -> "Form": ) -> "Form":
@ -716,7 +716,7 @@ class FormNamespace(ComponentNamespace):
on_mouse_over: Optional[EventType[[]]] = None, on_mouse_over: Optional[EventType[[]]] = None,
on_mouse_up: Optional[EventType[[]]] = None, on_mouse_up: Optional[EventType[[]]] = None,
on_scroll: 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, on_unmount: Optional[EventType[[]]] = None,
**props, **props,
) -> "Form": ) -> "Form":