stubs for smtpd (#1203)

This commit is contained in:
Jelle Zijlstra
2017-04-24 15:02:51 -07:00
committed by Łukasz Langa
parent 0fcece539b
commit e8e002d9c0
2 changed files with 89 additions and 2 deletions

View File

@@ -9,13 +9,13 @@ class simple_producer:
def __init__(self, data: str, buffer_size: int = ...) -> None: ...
def more(self) -> str: ...
class async_chat (asyncore.dispatcher):
class async_chat(asyncore.dispatcher):
ac_in_buffer_size = ... # type: int
ac_out_buffer_size = ... # type: int
def __init__(self, sock: socket.socket = None, map: asyncore._maptype = None) -> None: ...
@abstractmethod
def collect_incoming_data(self, data: str) -> None: ...
def collect_incoming_data(self, data: bytes) -> None: ...
@abstractmethod
def found_terminator(self) -> None: ...
def set_terminator(self, term: Union[str, int, None]) -> None: ...