From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 29 Jul 2023 17:12:50 +0000 (-0700) Subject: [3.12] gh-107422: Remove outdated `TypedDict` example from typing docs (GH-107436... X-Git-Tag: v3.12.0rc1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c0a99d322037d653063dc8466b886110e0fc447;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-107422: Remove outdated `TypedDict` example from typing docs (GH-107436) (#107437) 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> --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index e1acbd83a417..11c39a444ef6 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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):