Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid type hinting of initial_channels in WS Connection #461

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix linting
junah201 committed Jul 4, 2024
commit dea20626cacf4458d6ddcc62a3d2c7c8e3d039ad
4 changes: 3 additions & 1 deletion twitchio/client.py
Original file line number Diff line number Diff line change
@@ -76,7 +76,9 @@ def __init__(
token: str,
*,
client_secret: str = None,
initial_channels: Union[List[str], Tuple[str, ...], Callable[[], Union[List[str], Tuple[str, ...]]], None] = None,
initial_channels: Union[
List[str], Tuple[str, ...], Callable[[], Union[List[str], Tuple[str, ...]]], None
] = None,
loop: asyncio.AbstractEventLoop = None,
heartbeat: Optional[float] = 30.0,
retain_cache: Optional[bool] = True,
4 changes: 3 additions & 1 deletion twitchio/ext/commands/bot.py
Original file line number Diff line number Diff line change
@@ -53,7 +53,9 @@ def __init__(
*,
prefix: Union[str, list, tuple, set, Callable, Coroutine],
client_secret: str = None,
initial_channels: Union[List[str], Tuple[str, ...], Callable[[], Union[List[str], Tuple[str, ...]]], None] = None,
initial_channels: Union[
List[str], Tuple[str, ...], Callable[[], Union[List[str], Tuple[str, ...]]], None
] = None,
heartbeat: Optional[float] = 30.0,
retain_cache: Optional[bool] = True,
**kwargs,
4 changes: 3 additions & 1 deletion twitchio/websocket.py
Original file line number Diff line number Diff line change
@@ -57,7 +57,9 @@ def __init__(
client: "Client",
token: str = None,
modes: tuple = None,
initial_channels: Union[List[str], Tuple[str, ...], Callable[[], Union[List[str], Tuple[str, ...]]], None] = None,
initial_channels: Union[
List[str], Tuple[str, ...], Callable[[], Union[List[str], Tuple[str, ...]]], None
] = None,
retain_cache: Optional[bool] = True,
):
self._loop = loop