@@ -160,7 +160,7 @@ assignable to the ``extra_items`` argument.
160160There are some advantages to this approach:
161161
162162- We can build on top of the `assignability rules defined in the typing spec
163- <https://typing.readthedocs.io /en/latest/spec/typeddict.html#assignability> `__,
163+ <https://typing.python.org /en/latest/spec/typeddict.html#assignability> `__,
164164 where ``extra_items `` can be treated as a pseudo-item.
165165
166166- There is no need to introduce a grammar change to specify the type of the
@@ -182,7 +182,7 @@ If ``extra_items`` is specified, extra items are treated as :ref:`non-required
182182<typing:required-notrequired>`
183183items matching the ``extra_items `` argument, whose keys are allowed when
184184determining `supported and unsupported operations
185- <https://typing.readthedocs.io /en/latest/spec/typeddict.html#supported-and-unsupported-operations> `__.
185+ <https://typing.python.org /en/latest/spec/typeddict.html#supported-and-unsupported-operations> `__.
186186
187187The ``extra_items `` Class Parameter
188188-----------------------------------
@@ -306,9 +306,9 @@ It is an error to use ``Required[]`` or ``NotRequired[]`` with ``extra_items``.
306306``total=False `` and ``total=True `` have no effect on ``extra_items `` itself.
307307
308308The extra items are non-required, regardless of the `totality
309- <https://typing.readthedocs.io /en/latest/spec/typeddict.html#totality> `__ of the
309+ <https://typing.python.org /en/latest/spec/typeddict.html#totality> `__ of the
310310TypedDict. `Operations
311- <https://typing.readthedocs.io /en/latest/spec/typeddict.html#supported-and-unsupported-operations> `__
311+ <https://typing.python.org /en/latest/spec/typeddict.html#supported-and-unsupported-operations> `__
312312that are available to ``NotRequired `` items should also be available to the
313313extra items::
314314
@@ -356,7 +356,7 @@ Inheritance
356356
357357``extra_items `` is inherited in a similar way as a regular ``key: value_type ``
358358item. As with the other keys, the `inheritance rules
359- <https://typing.readthedocs.io /en/latest/spec/typeddict.html#inheritance> `__
359+ <https://typing.python.org /en/latest/spec/typeddict.html#inheritance> `__
360360and :ref: `Read-only Items <typing:readonly >` inheritance rules apply.
361361
362362We need to reinterpret these rules to define how ``extra_items `` interacts with
@@ -594,7 +594,7 @@ are assignable to ``VT``. For the purpose of this rule, a
594594TypedDict that does not have ``extra_items= `` or ``closed= `` set is considered
595595to have an item with a value of type ``object ``. This extends the current
596596assignability rule from the `typing spec
597- <https://typing.readthedocs.io /en/latest/spec/typeddict.html#assignability> `__.
597+ <https://typing.python.org /en/latest/spec/typeddict.html#assignability> `__.
598598
599599For example::
600600
0 commit comments