mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-05 06:01:02 +03:00
Add missing connect abstractmethod
This commit is contained in:
parent
ba4b7ce881
commit
eb22bce2d9
|
@ -22,6 +22,10 @@ class Connection(abc.ABC):
|
|||
self._proxy = proxy
|
||||
self._timeout = timeout
|
||||
|
||||
@abc.abstractmethod
|
||||
def connect(self, ip, port):
|
||||
raise NotImplementedError
|
||||
|
||||
@abc.abstractmethod
|
||||
def get_timeout(self):
|
||||
"""Returns the timeout used by the connection."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user