Skip to content

Commit 258c4de

Browse files
committed
Update types.py
1 parent 61fc1d3 commit 258c4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactpy/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ class EventHandlerType(Protocol):
919919
EventHandlerMapping = Mapping[str, EventHandlerType]
920920
"""A generic mapping between event names to their handlers"""
921921

922-
EventHandlerDict: TypeAlias = dict[str, EventHandlerType]
922+
EventHandlerDict: TypeAlias = dict[str, EventHandlerType | str]
923923
"""A dict mapping between event names to their handlers"""
924924

925925

0 commit comments

Comments
 (0)