Skip to content

Commit

Permalink
Update initial_channels typehint.
Browse files Browse the repository at this point in the history
  • Loading branch information
scragly committed Jan 21, 2020
1 parent e03cbda commit e3304be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitchio/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import itertools
import sys
import traceback
from typing import Union
from typing import Callable, Union
from twitchio.channel import Channel
from twitchio.client import Client
from twitchio.websocket import WSConnection
Expand All @@ -42,7 +42,7 @@
class Bot(Client):

def __init__(self, irc_token: str, *, nick: str, prefix: Union[str, list, tuple],
initial_channels: Union[list, tuple] = None, **kwargs):
initial_channels: Union[list, tuple, Callable] = None, **kwargs):
super().__init__(client_id=kwargs.get('client_id'))

self.loop = kwargs.get('loop', asyncio.get_event_loop())
Expand Down

0 comments on commit e3304be

Please sign in to comment.