MCPcopy Index your code
hub / github.com/reactive-python/reactpy / setup

Function setup

src/py/reactpy/reactpy/core/events.py:65–70  ·  view source on GitHub ↗
(function: Callable[..., Any])

Source from the content-addressed store, hash-verified

63 """
64
65 def setup(function: Callable[..., Any]) -> EventHandler:
66 return EventHandler(
67 to_event_handler_function(function, positional_args=True),
68 stop_propagation,
69 prevent_default,
70 )
71
72 if function is not None:
73 return setup(function)

Callers 1

eventFunction · 0.70

Calls 2

EventHandlerClass · 0.85

Tested by

no test coverage detected