From e01407683e5942ea8cf6b8c0fb54229b9e94a90a Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 12 Dec 2025 20:26:34 +0100 Subject: [PATCH] [3.14] Doc: remove the invalid type variables of typing.TextIO and BinaryIO (GH-142642) (#142643) 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 862f765b148c..360a0af0ee4e 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])`` -- 2.47.3