Skip to content

Commit 1d9da4e

Browse files
baterflyrityAkuli
andauthored
Add IOBase.read() and write() (#4912)
These methods are required on IOBase-derived classes, even if they are not a formal part of the protocol. For more information, see https://docs.python.org/3/library/io.html#io.IOBase. Closes: #4906 Co-authored-by: Akuli <[email protected]>
1 parent 8cad322 commit 1d9da4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/3/io.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ class IOBase:
3434
def flush(self) -> None: ...
3535
def isatty(self) -> bool: ...
3636
def readable(self) -> bool: ...
37+
read: Callable[..., Any]
3738
def readlines(self, __hint: int = ...) -> List[bytes]: ...
3839
def seek(self, __offset: int, __whence: int = ...) -> int: ...
3940
def seekable(self) -> bool: ...
4041
def tell(self) -> int: ...
4142
def truncate(self, __size: Optional[int] = ...) -> int: ...
4243
def writable(self) -> bool: ...
44+
write: Callable[..., Any]
4345
def writelines(self, __lines: Iterable[ReadableBuffer]) -> None: ...
4446
def readline(self, __size: Optional[int] = ...) -> bytes: ...
4547
def __del__(self) -> None: ...

0 commit comments

Comments
 (0)