From eaa7355a13d0cd54780a4ad3299ab55bb9bb4348 Mon Sep 17 00:00:00 2001 From: Onyx and Iris Date: Mon, 20 Jan 2025 13:36:54 +0000 Subject: [PATCH] fix event_handler annotation --- streamlabsio/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamlabsio/client.py b/streamlabsio/client.py index 4ddf866..7e0c1db 100644 --- a/streamlabsio/client.py +++ b/streamlabsio/client.py @@ -1,6 +1,6 @@ import logging from pathlib import Path -from typing import Any, Union +from typing import Union import socketio from observable import Observable @@ -113,7 +113,7 @@ class Client: def connect_handler(self) -> None: self.logger.info('Connected to Streamlabs Socket API') - def event_handler(self, data: Any) -> None: + def event_handler(self, data: dict) -> None: """ Handles incoming events and triggers corresponding OBS actions. Args: