feat(types): Resolve strict mypy errors in api_hook_client.py, models.py, and events.py
This commit is contained in:
@@ -11,9 +11,9 @@ class EventEmitter:
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""Initializes the EventEmitter with an empty listener map."""
|
||||
self._listeners: Dict[str, List[Callable]] = {}
|
||||
self._listeners: Dict[str, List[Callable[..., Any]]] = {}
|
||||
|
||||
def on(self, event_name: str, callback: Callable) -> None:
|
||||
def on(self, event_name: str, callback: Callable[..., Any]) -> None:
|
||||
"""
|
||||
Registers a callback for a specific event.
|
||||
|
||||
@@ -45,7 +45,7 @@ class AsyncEventQueue:
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""Initializes the AsyncEventQueue with an internal asyncio.Queue."""
|
||||
self._queue: asyncio.Queue = asyncio.Queue()
|
||||
self._queue: asyncio.Queue[Tuple[str, Any]] = asyncio.Queue()
|
||||
|
||||
async def put(self, event_name: str, payload: Any = None) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user