Skip to content

Commit 9d6d704

Browse files
committed
fix type annotation for _MemoryFile.readinto
1 parent 71055c5 commit 9d6d704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/memoryfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def readable(self):
141141
return self._mode.reading
142142

143143
def readinto(self, b):
144-
# type (bytes) -> Optional[int]
144+
# type (bytearray) -> Optional[int]
145145
if not self._mode.reading:
146146
raise IOError("File not open for reading")
147147
with self._seek_lock():

0 commit comments

Comments
 (0)