8000
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 4d50c2e commit 1e1ea41Copy full SHA for 1e1ea41
Lib/typing.py
@@ -2936,13 +2936,15 @@ class Reader[T](Iterable[T], Protocol):
2936
2937
__slots__ = ()
2938
2939
+ @abstractmethod
2940
def read(self, size: int = ..., /) -> T:
2941
"""Read data from the input stream and return it.
2942
2943
If "size" is specified, at most "size" items (bytes/characters) will be
2944
read.
2945
"""
2946
2947
2948
def readline(self, size: int = ..., /) -> T:
2949
"""Read a line of data from the input stream and return it.
2950
@@ -2960,6 +2962,7 @@ class Writer[T](Protocol):
2960
2962
2961
2963
2964
2965
2966
def write(self, data: T, /) -> int:
2967
"""Write data to the output stream and return number of items written."""
2968
0 commit comments