]> granicus.if.org Git - python/commitdiff
fixed outdated annotation of readinto in io
authorBenjamin Peterson <benjamin@python.org>
Mon, 7 Apr 2008 22:27:34 +0000 (22:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 7 Apr 2008 22:27:34 +0000 (22:27 +0000)
Lib/io.py

index 47d1ac570dc36567a0f132c2e28ee0091cb6350a..15eca0a9f3272e2caae70270c5f77d819138ea39 100644 (file)
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -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