8000 Small wording improvements · python/cpython@6a22a02 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a22a02

Browse files
committed
Small wording improvements
1 parent 7867ec1 commit 6a22a02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/typing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2821,7 +2821,7 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
28212821

28222822
.. class:: Reader[T]
28232823

2824-
Protocol for reading from a file or other I/O stream.
2824+
Protocol for reading from a file or other input stream.
28252825

28262826
.. method:: read(size=...)
28272827
.. method:: readline(size=...)
@@ -2836,7 +2836,7 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
28362836

28372837
.. class:: Writer[T]
28382838

2839-
Protocol for writing to a file or other I/O stream.
2839+
Protocol for writing to a file or other output stream.
28402840

28412841
.. method:: write(o)
28422842

@@ -2846,7 +2846,7 @@ decorated with :func:`@runtime_checkable <runtime_checkable>`.
28462846
writer.write(b"Hello world!\n")
28472847

28482848
Also consider using :class:`collections.abc.Iterable` for iterating over
2849-
a stream::
2849+
the lines of an input stream::
28502850

28512851
def read_config(stream: Iterable[str]):
28522852
for line in stream:

0 commit comments

Comments
 (0)
0