From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 13 Dec 2017 08:59:01 +0000 (-0800) Subject: bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833) X-Git-Tag: v3.6.4~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=898a3e4901b3b6de9b540e18faa457a6ac3e49bb;p=python bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833) (cherry picked from commit c3e070f84931c847d1b35e7fb36aa71edd6215f6) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index d28a5d5484..9c4777ac2f 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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``,