def get_handlers(self, event: str) -> T.List[T.Callable]:
        """Returns a list of handlers registered for the given event."""

        return list(self._events.get(event, []))
def get_handlers ( self , event : str ) -> T . List [ T . Callable ] : return list ( self . _events . get ( event , [ ] ) )
Returns a list of handlers registered for the given event.