Skip to content

Commit 3bef3ac

Browse files
committed
more typing
1 parent df28495 commit 3bef3ac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

reflex_ui/blocks/intro_form.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
This module provides a comprehensive intro form that validates company emails.
44
"""
55

6+
from typing import Any
7+
68
import reflex as rx
79
from reflex.event import EventType
810
from reflex.experimental.client_state import ClientStateVar
@@ -241,7 +243,9 @@ def select_field(
241243

242244

243245
def intro_form(
244-
id_prefix: str = "", on_submit: EventType[()] | None = None, **props
246+
id_prefix: str = "",
247+
on_submit: EventType[dict[str, Any]] | EventType[()] | None = None,
248+
**props,
245249
) -> rx.Component:
246250
"""Create and return the intro form component.
247251
@@ -349,7 +353,7 @@ def intro_form(
349353
def intro_form_dialog(
350354
trigger: rx.Component | None = None,
351355
id_prefix: str = "",
352-
on_submit: EventType[()] | None = None,
356+
on_submit: EventType[dict[str, Any]] | EventType[()] | None = None,
353357
**props,
354358
) -> rx.Component:
355359
"""Return a intro form dialog container element.

0 commit comments

Comments
 (0)