gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
This commit is contained in:
Alex Kautz 2025-05-20 14:18:58 -04:00 committed by GitHub
parent b430e92dd8
commit 36eb711d2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -894,9 +894,10 @@ Text I/O
.. attribute:: buffer
The underlying binary buffer (a :class:`BufferedIOBase` instance) that
:class:`TextIOBase` deals with. This is not part of the
:class:`TextIOBase` API and may not exist in some implementations.
The underlying binary buffer (a :class:`BufferedIOBase`
or :class:`RawIOBase` instance) that :class:`TextIOBase` deals with.
This is not part of the :class:`TextIOBase` API and may not exist
in some implementations.
.. method:: detach()