]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-107422: Remove outdated `TypedDict` example from typing docs (#107436)...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sat, 29 Jul 2023 17:21:45 +0000 (18:21 +0100)
committerGitHub <noreply@github.com>
Sat, 29 Jul 2023 17:21:45 +0000 (17:21 +0000)
gh-107422: Remove outdated `TypedDict` example from typing docs (#107436)

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

index d03f0af1bc6b61eef1ce875ce1c21781ac73f3fd..a0766690bad2871bf1e60d49b5bb1cd6aec50c10 100644 (file)
@@ -2073,9 +2073,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:
 
    .. testcode::