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

Method __init__

src/py/reactpy/reactpy/core/events.py:100–110  ·  view source on GitHub ↗
(
        self,
        function: EventHandlerFunc,
        stop_propagation: bool = False,
        prevent_default: bool = False,
        target: str | None = None,
    )

Source from the content-addressed store, hash-verified

98 )
99
100 def __init__(
101 self,
102 function: EventHandlerFunc,
103 stop_propagation: bool = False,
104 prevent_default: bool = False,
105 target: str | None = None,
106 ) -> None:
107 self.function = to_event_handler_function(function, positional_args=False)
108 self.prevent_default = prevent_default
109 self.stop_propagation = stop_propagation
110 self.target = target
111
112 def __eq__(self, other: object) -> bool:
113 undefined = object()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected