File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2821,7 +2821,7 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
2821
2821
2822
2822
.. class :: Reader[T]
2823
2823
2824
- Protocol for reading from a file or other I/O stream.
2824
+ Protocol for reading from a file or other input stream.
2825
2825
2826
2826
.. method :: read(size=...)
2827
2827
.. method :: readline(size=...)
@@ -2836,7 +2836,7 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
2836
2836
2837
2837
.. class :: Writer[T]
2838
2838
2839
- Protocol for writing to a file or other I/O stream.
2839
+ Protocol for writing to a file or other output stream.
2840
2840
2841
2841
.. method :: write(o)
2842
2842
@@ -2846,7 +2846,7 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
2846
2846
writer.write(b"Hello world!\n")
2847
2847
2848
2848
Also consider using :class: `collections.abc.Iterable ` for iterating over
2849
- a stream::
2849
+ the lines of an input stream::
2850
2850
2851
2851
def read_config(stream: Iterable[str]):
2852
2852
for line in stream:
You can’t perform that action at this time.
0 commit comments