Skip to content

Commit

Permalink
bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833)
Browse files Browse the repository at this point in the history
(cherry picked from commit c3e070f)
  • Loading branch information
miss-islington authored and ned-deily committed Dec 19, 2017
1 parent 638f68c commit 898a3e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/typing.rst
Expand Up @@ -774,9 +774,9 @@ The module defines the following classes, functions and decorators:

Wrapper namespace for I/O stream types.

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

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

0 comments on commit 898a3e4

Please sign in to comment.