@@ -396,37 +396,37 @@ Special typing primitives
396
396
397
397
.. versionadded :: 4.9.0
398
398
399
- The experimental ``closed `` keyword argument and the special key
400
- ``__extra_items__ `` proposed in :pep: `728 ` are supported.
399
+ The experimental ``closed `` keyword argument and the special key
400
+ ``__extra_items__ `` proposed in :pep: `728 ` are supported.
401
401
402
- When ``closed `` is unspecified or ``closed=False `` is given,
403
- ``__extra_items__ `` behaves like a regular key. Otherwise, this becomes a
404
- special key that does not show up in ``__readonly_keys__ ``,
405
- ``__mutable_keys__ ``, ``__required_keys__ ``, ``__optional_keys ``, or
406
- ``__annotations__ ``.
402
+ When ``closed `` is unspecified or ``closed=False `` is given,
403
+ ``__extra_items__ `` behaves like a regular key. Otherwise, this becomes a
404
+ special key that does not show up in ``__readonly_keys__ ``,
405
+ ``__mutable_keys__ ``, ``__required_keys__ ``, ``__optional_keys ``, or
406
+ ``__annotations__ ``.
407
407
408
- For runtime introspection, two attributes can be looked at:
408
+ For runtime introspection, two attributes can be looked at:
409
409
410
- .. attribute :: __closed__
410
+ .. attribute :: __closed__
411
411
412
- A boolean flag indicating whether the current ``TypedDict `` is
413
- considered closed. This is not inherited by the ``TypedDict ``'s
414
- subclasses.
412
+ A boolean flag indicating whether the current ``TypedDict `` is
413
+ considered closed. This is not inherited by the ``TypedDict ``'s
414
+ subclasses.
415
415
416
- .. versionadded :: 4.10.0
416
+ .. versionadded :: 4.10.0
417
417
418
- .. attribute :: __extra_items__
418
+ .. attribute :: __extra_items__
419
419
420
- The type annotation of the extra items allowed on the ``TypedDict ``.
421
- This attribute defaults to ``None `` on a TypedDict that has itself and
422
- all its bases non-closed. This default is different from ``type(None) ``
423
- that represents ``__extra_items__: None `` defined on a closed
424
- ``TypedDict ``.
420
+ The type annotation of the extra items allowed on the ``TypedDict ``.
421
+ This attribute defaults to ``None `` on a TypedDict that has itself and
422
+ all its bases non-closed. This default is different from ``type(None) ``
423
+ that represents ``__extra_items__: None `` defined on a closed
424
+ ``TypedDict ``.
425
425
426
- If ``__extra_items__ `` is not defined or inherited on a closed
427
- ``TypedDict ``, this defaults to ``Never ``.
426
+ If ``__extra_items__ `` is not defined or inherited on a closed
427
+ ``TypedDict ``, this defaults to ``Never ``.
428
428
429
- .. versionadded :: 4.10.0
429
+ .. versionadded :: 4.10.0
430
430
431
431
.. versionchanged :: 4.3.0
432
432
0 commit comments