Remove duplicate definitions (#8483)

This commit is contained in:
Nikita Sobolev
2022-08-04 19:55:18 +03:00
committed by GitHub
parent 103c2f39d2
commit a376da87bd
20 changed files with 4 additions and 101 deletions

View File

@@ -1,5 +1,4 @@
import asyncore
import socket
from abc import abstractmethod
class simple_producer:
@@ -9,20 +8,14 @@ class simple_producer:
class async_chat(asyncore.dispatcher):
ac_in_buffer_size: int
ac_out_buffer_size: int
def __init__(self, sock: socket.socket | None = ..., map: asyncore._MapType | None = ...) -> None: ...
@abstractmethod
def collect_incoming_data(self, data: bytes) -> None: ...
@abstractmethod
def found_terminator(self) -> None: ...
def set_terminator(self, term: bytes | int | None) -> None: ...
def get_terminator(self) -> bytes | int | None: ...
def handle_read(self) -> None: ...
def handle_write(self) -> None: ...
def handle_close(self) -> None: ...
def push(self, data: bytes) -> None: ...
def push_with_producer(self, producer: simple_producer) -> None: ...
def readable(self) -> bool: ...
def writable(self) -> bool: ...
def close_when_done(self) -> None: ...
def initiate_send(self) -> None: ...
def discard_buffers(self) -> None: ...