mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
[alt] typing: accept buffers in IO.write (#9861)
Co-authored-by: JelleZijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -272,8 +272,9 @@ class StreamRecoder(BinaryIO):
|
||||
def readlines(self, sizehint: int | None = None) -> list[bytes]: ...
|
||||
def __next__(self) -> bytes: ...
|
||||
def __iter__(self) -> Self: ...
|
||||
# Base class accepts more types than just bytes
|
||||
def write(self, data: bytes) -> None: ... # type: ignore[override]
|
||||
def writelines(self, list: Iterable[bytes]) -> None: ...
|
||||
def writelines(self, list: Iterable[bytes]) -> None: ... # type: ignore[override]
|
||||
def reset(self) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user