feat(types): Resolve strict mypy errors in api_hook_client.py, models.py, and events.py

This commit is contained in:
2026-03-04 01:11:50 -05:00
parent b467107159
commit 6ebbf40d9d
4 changed files with 49 additions and 45 deletions

View File

@@ -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:
"""