From 44c4a83ac38f3b69bac3bf4a241602ff52bd8ac1 Mon Sep 17 00:00:00 2001 From: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com> Date: Tue, 2 Jun 2026 23:06:39 +0500 Subject: [PATCH] gh-141627: Fix BufferedRandom inheritance documentation (GH-141629) BufferedRandom does not inherit from BufferedReader and BufferedWriter in the C implementation. (cherry picked from commit 551bc2cb5ed4719c35ca3ea0f320167dd750389e) Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com> --- 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 55ec6ee5b31a224..38f64681af6e7d5 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -829,9 +829,9 @@ than raw I/O does. .. class:: BufferedRandom(raw, buffer_size=DEFAULT_BUFFER_SIZE) - A buffered binary stream providing higher-level access to a seekable - :class:`RawIOBase` raw binary stream. It inherits from :class:`BufferedReader` - and :class:`BufferedWriter`. + A buffered binary stream implementing :class:`BufferedIOBase` interfaces + providing higher-level access to a seekable :class:`RawIOBase` raw binary + stream. The constructor creates a reader and writer for a seekable raw stream, given in the first argument. If the *buffer_size* is omitted it defaults to