]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-107422: Remove outdated `TypedDict` example from typing docs (GH-107436...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 29 Jul 2023 17:12:50 +0000 (10:12 -0700)
committerGitHub <noreply@github.com>
Sat, 29 Jul 2023 17:12:50 +0000 (17:12 +0000)
gh-107422: Remove outdated `TypedDict` example from typing docs (GH-107436)
(cherry picked from commit 89fd4f4a3fc5fb8076ec064c22a30108480e946b)

Co-authored-by: Rakesh Sabale <102187286+ghubrakesh@users.noreply.github.com>
Doc/library/typing.rst

index e1acbd83a417303913f60f902ffef060a4bdb014..11c39a444ef65d035ebcd26ad1ebcfe46e348390 100644 (file)
@@ -2327,9 +2327,6 @@ types.
 
       class XZ(X, Z): pass  # raises TypeError
 
-      T = TypeVar('T')
-      class XT(X, Generic[T]): pass  # raises TypeError
-
    A ``TypedDict`` can be generic::
 
       class Group[T](TypedDict):