From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 12 Dec 2025 19:26:34 +0000 (+0100) Subject: [3.14] Doc: remove the invalid type variables of typing.TextIO and BinaryIO (GH-14264... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e01407683e5942ea8cf6b8c0fb54229b9e94a90a;p=thirdparty%2FPython%2Fcpython.git [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 --- 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])``