mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-02-12 00:43:21 +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: ...
|