From 32f4439bceaf6c70f62913316f08b16c2b1e26a0 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Thu, 17 Apr 2025 18:59:45 +0200 Subject: [PATCH] Fix assignability rule for typed dictionaries --- docs/spec/typeddict.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/spec/typeddict.rst b/docs/spec/typeddict.rst index 559771f7..4cbeedba 100644 --- a/docs/spec/typeddict.rst +++ b/docs/spec/typeddict.rst @@ -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: