12 lines
252 B
Python

from typing import Protocol
class BaseStreamReader(Protocol):
async def read(self, n: int) -> bytes: ...
async def readexactly(self, n: int) -> bytes: ...
def feed_data(self, data: bytes) -> None: ...
def at_eof(self) -> bool: ...