We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fc1d3 commit 258c4deCopy full SHA for 258c4de
src/reactpy/types.py
@@ -919,7 +919,7 @@ class EventHandlerType(Protocol):
919
EventHandlerMapping = Mapping[str, EventHandlerType]
920
"""A generic mapping between event names to their handlers"""
921
922
-EventHandlerDict: TypeAlias = dict[str, EventHandlerType]
+EventHandlerDict: TypeAlias = dict[str, EventHandlerType | str]
923
"""A dict mapping between event names to their handlers"""
924
925
0 commit comments