From: Roman Donchenko Date: Fri, 12 Dec 2025 19:20:49 +0000 (+0200) Subject: Doc: remove the invalid type variables of typing.TextIO and BinaryIO (#142642) X-Git-Tag: v3.15.0a3~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa1ac9070c7525cab69c043ca2259e6d86357fb3;p=thirdparty%2FPython%2Fcpython.git Doc: remove the invalid type variables of typing.TextIO and BinaryIO (#142642) They are not generic classes. --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 58f3a8ecd7c2..4e9946fd4567 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])``