mirror of https://github.com/python/cpython
bpo-32284: Fix documentation of BinaryIO and TextIO (#4832)
This commit is contained in:
parent
fc5db95e00
commit
c3e070f849
|
@ -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…
Reference in New Issue