Spec change proposal: updating/clarifying rules for unpacking TypedDicts in function calls
Discussions on Python.org
Spec change proposal: updating/clarifying rules for unpacking TypedDicts in function calls
Previously, this section of the spec was not asserted in conformance tests or implemented by any type checkers: Callables — typing documentation I propose a change to the typing spec and conformance tests to update the rules to account for PEP 728 (closed/extra items). It is only safe to unpack a non-closed TypedDict in a function call if that function has **kwargs in its signature, and any extra items are assignable to the type of **kwargs. If the function being called has **kwargs, checker...
0 comments
No comments yet.