]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Enhance TypedDict docs around required/optional keys (#109547)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 27 Sep 2023 17:35:46 +0000 (10:35 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 17:35:46 +0000 (10:35 -0700)
commitf49958c886a2f2608f1008186d588efc2a98b445
tree71d43e2548eb2061798bce5e11624fd902dbce08
parent74723e11109a320e628898817ab449b3dad9ee96
Enhance TypedDict docs around required/optional keys (#109547)

As discussed in comments to #109544, the semantics of this attribute
are somewhat confusing. Add a note explaining its limitations and
steering users towards __required_keys__ and __optional_keys__ instead.
Doc/library/typing.rst