|
3 | 3 | import socket |
4 | 4 | import source.ircmessage |
5 | 5 | import threading |
6 | | -from bot.coroutine import connection, join |
| 6 | +from bot.coroutine import connection as connectionM |
7 | 7 | from collections import defaultdict, deque, OrderedDict |
8 | 8 | from datetime import datetime, timedelta |
9 | 9 | from typing import Any, Callable, Deque, Dict, Generic, Iterable, List |
@@ -96,17 +96,17 @@ class Channel: |
96 | 96 |
|
97 | 97 | def __init__(self, |
98 | 98 | channel: str, |
99 | | - connection_: 'connection.ConnectionHandler', |
| 99 | + connection_: 'connectionM.ConnectionHandler', |
100 | 100 | joinPriority: Union[int, float, str]=float('inf')) -> None: |
101 | 101 | if not isinstance(channel, str): |
102 | 102 | raise TypeError() |
103 | | - if not isinstance(connection_, connection.ConnectionHandler): |
| 103 | + if not isinstance(connection_, connectionM.ConnectionHandler): |
104 | 104 | raise TypeError() |
105 | 105 | if not channel: |
106 | 106 | raise ValueError() |
107 | 107 | self._channel: str = channel |
108 | 108 | self._ircChannel: str = '#' + channel |
109 | | - self._connection: connection.ConnectionHandler = connection_ |
| 109 | + self._connection: connectionM.ConnectionHandler = connection_ |
110 | 110 | self._isMod: bool = False |
111 | 111 | self._isSubscriber: bool = False |
112 | 112 | self._ircUsers: Set[str] = set() |
@@ -135,7 +135,7 @@ def ircChannel(self) -> str: |
135 | 135 | return self._ircChannel |
136 | 136 |
|
137 | 137 | @property |
138 | | - def connection(self) -> 'connection.ConnectionHandler': |
| 138 | + def connection(self) -> 'connectionM.ConnectionHandler': |
139 | 139 | return self._connection |
140 | 140 |
|
141 | 141 | @property |
|
0 commit comments