From 0f36b0befe2b09ed0b7f73139a40579e8b676e03 Mon Sep 17 00:00:00 2001 From: junah201 Date: Wed, 3 Jul 2024 04:17:57 +0900 Subject: [PATCH] Fix invalid type hinting of initial_channels in WS Connection (#460) --- twitchio/websocket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitchio/websocket.py b/twitchio/websocket.py index da61a6a1..bb57ca73 100644 --- a/twitchio/websocket.py +++ b/twitchio/websocket.py @@ -31,7 +31,7 @@ import time import traceback from functools import partial -from typing import Union, Optional, List, TYPE_CHECKING +from typing import Union, Callable, Optional, List, TYPE_CHECKING import aiohttp @@ -57,7 +57,7 @@ def __init__( client: "Client", token: str = None, modes: tuple = None, - initial_channels: List[str] = None, + initial_channels: Union[list, tuple, Callable] = None, retain_cache: Optional[bool] = True, ): self._loop = loop