bpo-32284: Fix documentation of BinaryIO and TextIO (#4832) · python/cpython@c3e070f (original) (raw)

Original file line number Diff line number Diff line change
@@ -774,9 +774,9 @@ The module defines the following classes, functions and decorators:
774 774
775 775 Wrapper namespace for I/O stream types.
776 776
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
780 780 :func:`open`.
781 781
782 782 These types are also accessible directly as ``typing.IO``,