]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: remove the invalid type variables of typing.TextIO and BinaryIO (#142642)
authorRoman Donchenko <rdonchen@outlook.com>
Fri, 12 Dec 2025 19:20:49 +0000 (21:20 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Dec 2025 19:20:49 +0000 (11:20 -0800)
They are not generic classes.

Doc/library/typing.rst

index 58f3a8ecd7c2e0cd4843ab8ddff7201d537058f7..4e9946fd4567cd83239014a9a64f630d8673913a 100644 (file)
@@ -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])``