From 2cbecb5665a2a4a05e365f881b1c5c1677e96e9d Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Fri, 12 Dec 2025 21:20:49 +0200 Subject: [PATCH] Doc: remove the invalid type variables of typing.TextIO and BinaryIO (GH-142642) They are not generic classes. (cherry picked from commit fa1ac9070c7525cab69c043ca2259e6d86357fb3) Co-authored-by: Roman Donchenko --- Doc/library/typing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 862f765b148c73..360a0af0ee4e5b 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2875,8 +2875,8 @@ ABCs and Protocols for working with I/O --------------------------------------- .. class:: IO[AnyStr] - TextIO[AnyStr] - BinaryIO[AnyStr] + TextIO + BinaryIO Generic class ``IO[AnyStr]`` and its subclasses ``TextIO(IO[str])`` and ``BinaryIO(IO[bytes])``