Skip to content

Commit 9d1689e

Browse files
Fix indentation in TypedDict docs (#352)
1 parent 4fdc09d commit 9d1689e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Diff for: doc/index.rst

+22-22
Original file line numberDiff line numberDiff line change
@@ -396,37 +396,37 @@ Special typing primitives
396396

397397
.. versionadded:: 4.9.0
398398

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.
401401

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__``.
407407

408-
For runtime introspection, two attributes can be looked at:
408+
For runtime introspection, two attributes can be looked at:
409409

410-
.. attribute:: __closed__
410+
.. attribute:: __closed__
411411

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.
415415

416-
.. versionadded:: 4.10.0
416+
.. versionadded:: 4.10.0
417417

418-
.. attribute:: __extra_items__
418+
.. attribute:: __extra_items__
419419

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``.
425425

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``.
428428

429-
.. versionadded:: 4.10.0
429+
.. versionadded:: 4.10.0
430430

431431
.. versionchanged:: 4.3.0
432432

0 commit comments

Comments
 (0)