From 4aeffcbd5be56c7d1adf4b857b5d3d74fe35a747 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 2 Nov 2025 06:42:04 -0800 Subject: [PATCH] Add two missing places where type expressions occur This missed some newer syntactic locations that are type expressions. --- docs/spec/annotations.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/spec/annotations.rst b/docs/spec/annotations.rst index efcdb787..9ef5bfe5 100644 --- a/docs/spec/annotations.rst +++ b/docs/spec/annotations.rst @@ -75,12 +75,16 @@ places. Specifically, type expressions are used in the following locations: * The second argument to :ref:`assert_type() ` * The bounds and constraints of a ``TypeVar`` (whether created through the old syntax or the native syntax in Python 3.12) +* The default of a ``TypeVar``, ``ParamSpec``, or ``TypeVarTuple`` (whether + created through the old syntax or the native syntax in Python 3.12) * The definition of a type alias (whether created through the ``type`` statement, the old assignment syntax, or the ``TypeAliasType`` constructor) * The type arguments of a generic class (which may appear in a base class or in a constructor call) * The definitions of fields in the functional forms for creating :ref:`TypedDict ` and :ref:`NamedTuple ` types +* The value passed to the ``extra_items`` argument in the :ref:`TypedDict ` + constructor * The base type in the definition of a :ref:`NewType ` .. _`annotation-expression`: