mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-01-09 16:33:08 +00:00
10 lines
197 B
Python
10 lines
197 B
Python
from typing import Protocol
|
|
|
|
|
|
class BaseStreamReader(Protocol):
|
|
async def read(self, n: int) -> bytes: ...
|
|
|
|
def feed_data(self, data: bytes) -> None: ...
|
|
|
|
def at_eof(self) -> bool: ...
|