Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3e070f

Browse files
srittauasvetlov
authored andcommitted
bpo-32284: Fix documentation of BinaryIO and TextIO (#4832)
1 parent fc5db95 commit c3e070f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/typing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ The module defines the following classes, functions and decorators:
774774

775775
Wrapper namespace for I/O stream types.
776776

777-
This defines the generic type ``IO[AnyStr]`` and aliases ``TextIO``
778-
and ``BinaryIO`` for respectively ``IO[str]`` and ``IO[bytes]``.
779-
These represent the types of I/O streams such as returned by
777+
This defines the generic type ``IO[AnyStr]`` and subclasses ``TextIO``
778+
and ``BinaryIO``, deriving from ``IO[str]`` and ``IO[bytes]``,
779+
respectively. These represent the types of I/O streams such as returned by
780780
:func:`open`.
781781

782782
These types are also accessible directly as ``typing.IO``,

0 commit comments

Comments
 (0)