@@ -284,17 +284,17 @@ added in a subclass, all of the following conditions should apply:
284284
285285- If ``__extra__ `` is read-only
286286
287- - The item can be either required or non-required
287+ - The item can be either required or non-required
288288
289- - The item's value type is consistent with ``T ``
289+ - The item's value type is consistent with ``T ``
290290
291291- If ``__extra__ `` is not read-only
292292
293- - The item is non-required
293+ - The item is non-required
294294
295- - The item's value type is consistent with ``T ``
295+ - The item's value type is consistent with ``T ``
296296
297- - ``T `` is consistent with the item's value type
297+ - ``T `` is consistent with the item's value type
298298
299299- If ``__extra__ `` is not redeclared, the subclass inherits it as-is.
300300
@@ -335,19 +335,19 @@ infinite set of items that all satisfy the following conditions:
335335
336336- If ``__extra__ `` is read-only
337337
338- - The key's value type is consistent with ``T ``
338+ - The key's value type is consistent with ``T ``
339339
340- - The key is not in ``S ``.
340+ - The key is not in ``S ``.
341341
342342- If ``__extra__ `` is not read-only
343343
344- - The key is non-required
344+ - The key is non-required
345345
346- - The key's value type is consistent with ``T ``
346+ - The key's value type is consistent with ``T ``
347347
348- - ``T `` is consistent with the key's value type
348+ - ``T `` is consistent with the key's value type
349349
350- - The key is not in ``S ``.
350+ - The key is not in ``S ``.
351351
352352For type checking purposes, let ``__extra__ `` be a non-required pseudo-item to
353353be included whenever "for each ... item/key" is stated in
@@ -410,7 +410,7 @@ corresponding key. ``"year"`` being required violates the rule "For each
410410required key in ``B ``, the corresponding key is required in ``A ``".
411411
412412When ``__extra__ `` is defined to be read-only in a TypedDict type, it is possible
413- for an item to have a narrower type than ``__extra__ ``'s value type.
413+ for an item to have a narrower type than ``__extra__ ``'s value type::
414414
415415 class Movie(TypedDict):
416416 name: str
@@ -448,7 +448,7 @@ Interaction with Mapping[KT, VT]
448448A TypedDict type can be consistent with ``Mapping[KT, VT] `` types other than
449449``Mapping[str, object] `` as long as the union of value types on the TypedDict
450450type is consistent with ``VT ``. It is an extension of this rule from the typing
451- spec::
451+ spec:
452452
453453 * A TypedDict with all ``int `` values is not consistent with
454454 ``Mapping[str, int] ``, since there may be additional non-``int ``
0 commit comments