From 58ac46f20c23c918ceb51bc4afbe52c3559fc8de Mon Sep 17 00:00:00 2001 From: Alex Kautz Date: Tue, 20 May 2025 13:56:37 -0400 Subject: [PATCH 1/2] Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase --- Doc/library/io.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 3aa2f35f05eba0..a224d4c201cee6 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -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() From 169c954839499bbdc91ec45ad7a85616d4edab60 Mon Sep 17 00:00:00 2001 From: Alex Kautz Date: Tue, 20 May 2025 14:08:05 -0400 Subject: [PATCH 2/2] Fixed whitespace --- Doc/library/io.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/io.rst b/Doc/library/io.rst index a224d4c201cee6..08c76da3d8c00a 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -894,9 +894,9 @@ Text I/O .. attribute:: buffer - 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 + 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()