We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cedfa42 commit a0b9e47Copy full SHA for a0b9e47
Lib/io.py
@@ -115,7 +115,7 @@ class Reader(metaclass=abc.ABCMeta):
115
__slots__ = ()
116
117
@abc.abstractmethod
118
- def read(self, size: int = ..., /) -> T:
+ def read(self, size=..., /):
119
"""Read data from the input stream and return it.
120
121
If "size" is specified, at most "size" items (bytes/characters) will be
@@ -141,7 +141,7 @@ class Writer(metaclass=abc.ABCMeta):
141
142
143
144
- def write(self, data: T, /) -> int:
+ def write(self, data, /):
145
"""Write data to the output stream and return number of items written."""
146
147
@classmethod
0 commit comments