@@ -160,7 +160,7 @@ assignable to the ``extra_items`` argument.
160
160
There are some advantages to this approach:
161
161
162
162
- 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> `__,
164
164
where ``extra_items `` can be treated as a pseudo-item.
165
165
166
166
- 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
182
182
<typing:required-notrequired>`
183
183
items matching the ``extra_items `` argument, whose keys are allowed when
184
184
determining `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> `__.
186
186
187
187
The ``extra_items `` Class Parameter
188
188
-----------------------------------
@@ -306,9 +306,9 @@ It is an error to use ``Required[]`` or ``NotRequired[]`` with ``extra_items``.
306
306
``total=False `` and ``total=True `` have no effect on ``extra_items `` itself.
307
307
308
308
The 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
310
310
TypedDict. `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> `__
312
312
that are available to ``NotRequired `` items should also be available to the
313
313
extra items::
314
314
@@ -356,7 +356,7 @@ Inheritance
356
356
357
357
``extra_items `` is inherited in a similar way as a regular ``key: value_type ``
358
358
item. 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> `__
360
360
and :ref: `Read-only Items <typing:readonly >` inheritance rules apply.
361
361
362
362
We 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
594
594
TypedDict that does not have ``extra_items= `` or ``closed= `` set is considered
595
595
to have an item with a value of type ``object ``. This extends the current
596
596
assignability 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> `__.
598
598
599
599
For example::
600
600
0 commit comments