(function: Callable[..., Any])
| 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) |
no test coverage detected