]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Doc: remove the invalid type variables of typing.TextIO and BinaryIO (GH-14264...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Dec 2025 19:26:34 +0000 (20:26 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Dec 2025 19:26:34 +0000 (19:26 +0000)
They are not generic classes.
(cherry picked from commit fa1ac9070c7525cab69c043ca2259e6d86357fb3)

Co-authored-by: Roman Donchenko <rdonchen@outlook.com>
Doc/library/typing.rst

index 862f765b148c73101a3032df2909681571d0c821..360a0af0ee4e5bf25834dcfc5125b2ad1991f0df 100644 (file)
@@ -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])``