]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] Enhance TypedDict docs around required/optional keys (GH-109547) (#109982)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Oct 2023 11:56:58 +0000 (04:56 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2023 11:56:58 +0000 (13:56 +0200)
commitee2f2bdb306a9ea286a64308376adfe5329367f0
treeb2da9595ba0b2b07b9dc083529b4bc4bd95ae7eb
parentbbce8bd05dd25c6e74487940fa1977485b52baf4
[3.12] Enhance TypedDict docs around required/optional keys (GH-109547) (#109982)

Enhance TypedDict docs around required/optional keys (GH-109547)

As discussed in comments to GH-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.
(cherry picked from commit f49958c886a2f2608f1008186d588efc2a98b445)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/typing.rst