mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833)
(cherry picked from commit c3e070f849
)
This commit is contained in:
parent
638f68c8bc
commit
898a3e4901
1 changed files with 3 additions and 3 deletions
|
@ -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``,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue