mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-01-02 13:03:13 +00:00
12 lines
252 B
Python
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: ...
|