Skip to content

Fix assignability rule for typed dictionaries #1974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/spec/typeddict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ and only if both of these conditions are satisfied:
* For each key in ``A``, ``B`` has the corresponding key and the corresponding
value type in ``B`` is :term:`consistent` with the value type in ``A``.

* For each required key in ``B``, the corresponding key is required
in ``A``. For each non-required key in ``B``, the corresponding key
is not required in ``A``.
* For each required key in ``A``, the corresponding key is required
in ``B``. For each non-required key in ``A``, the corresponding key
is not required in ``B``.

Discussion:

Expand Down