diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-07 22:27:34 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-07 22:27:34 (GMT) |
commit | ca2b01515b773d67e7c71219ad01b3d93c394c72 (patch) | |
tree | 90e500664be9a4296d6ff28a9a2c3a46090875a4 /Lib/io.py | |
parent | 21c80f224992c204ff8365904fd13186b61b3e72 (diff) | |
download | cpython-ca2b01515b773d67e7c71219ad01b3d93c394c72.zip cpython-ca2b01515b773d67e7c71219ad01b3d93c394c72.tar.gz cpython-ca2b01515b773d67e7c71219ad01b3d93c394c72.tar.bz2 |
fixed outdated annotation of readinto in io
Diffstat (limited to 'Lib/io.py')
-rw-r--r-- | Lib/io.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -487,8 +487,8 @@ class RawIOBase(IOBase): res += data return bytes(res) - def readinto(self, b: bytes) -> int: - """readinto(b: bytes) -> int. Read up to len(b) bytes into b. + def readinto(self, b: bytearray) -> int: + """readinto(b: bytearray) -> int. Read up to len(b) bytes into b. Returns number of bytes read (0 for EOF), or None if the object is set not to block as has no data to read. @@ -563,8 +563,8 @@ class BufferedIOBase(IOBase): """ self._unsupported("read") - def readinto(self, b: bytes) -> int: - """readinto(b: bytes) -> int. Read up to len(b) bytes into b. + def readinto(self, b: bytearray) -> int: + """readinto(b: bytearray) -> int. Read up to len(b) bytes into b. Like read(), this may issue multiple reads to the underlying raw stream, unless the latter is 'interactive' (XXX or a |