[Python-checkins] gh-107422: Remove outdated `TypedDict` example from typing docs (#107436)
AlexWaygood
webhook-mailer at python.org
Sat Jul 29 13:04:49 EDT 2023
https://github.com/python/cpython/commit/89fd4f4a3fc5fb8076ec064c22a30108480e946b
commit: 89fd4f4a3fc5fb8076ec064c22a30108480e946b
branch: main
author: Rakesh Sabale <102187286+ghubrakesh at users.noreply.github.com>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2023-07-29T17:04:46Z
summary:
gh-107422: Remove outdated `TypedDict` example from typing docs (#107436)
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 0265a39ce646f..e2791bbc97b00 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -2329,9 +2329,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):
More information about the Python-checkins
mailing list