From fa1ac9070c7525cab69c043ca2259e6d86357fb3 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 (#142642) They are not generic classes. --- 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 58f3a8ecd7c..4e9946fd456 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -2869,8 +2869,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])``