stdlib: Add bytes defaults (#9660)

This commit is contained in:
Alex Waygood
2023-02-03 00:01:54 +00:00
committed by GitHub
parent f1aede7162
commit 100cd62373
8 changed files with 34 additions and 34 deletions

View File

@@ -163,7 +163,7 @@ class StreamReader(AsyncIterator[bytes]):
def feed_data(self, data: Iterable[SupportsIndex]) -> None: ...
async def readline(self) -> bytes: ...
# Can be any buffer that supports len(); consider changing to a Protocol if PEP 688 is accepted
async def readuntil(self, separator: bytes | bytearray | memoryview = ...) -> bytes: ...
async def readuntil(self, separator: bytes | bytearray | memoryview = b"\n") -> bytes: ...
async def read(self, n: int = -1) -> bytes: ...
async def readexactly(self, n: int) -> bytes: ...
def __aiter__(self: Self) -> Self: ...