From c8f618035b8b274f40532309ce0b6b3c1ff251df Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Fri, 12 Dec 2025 11:29:31 +0200 Subject: [PATCH] Doc: remove the invalid type variables of typing.TextIO and BinaryIO 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 58f3a8ecd7c2e0..4e9946fd4567cd 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])``