Skip to content

Commit 81214ce

Browse files
authored
Restore a missing TypedDict subtyping requirement (#2119)
This requirement was present in previous version but was dropped in the most recent version.
1 parent d7bc355 commit 81214ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/typeddict.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ The conditions are as follows:
541541

542542
- If it is mutable in ``A``:
543543

544-
- If ``B`` has an item with the same key, it must also be mutable, and its item type must be
544+
- If ``B`` has an item with the same key, it must also be mutable and non-required, and its item type must be
545545
:term:`equivalent` to the item type in ``A``.
546546

547547
- Else:

0 commit comments

Comments
 (0)