]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] Enhance TypedDict docs around required/optional keys (GH-109547) (#109983)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 Sep 2023 17:54:27 +0000 (10:54 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 17:54:27 +0000 (10:54 -0700)
commit38526a29ed1f45fdc4a4b2f373f63376c4069f1a
tree371f31cc40283f0231ae59f8e13337f28b30e5fd
parent448a7071b12d019326604e0a7424d1f368f7d036
[3.11] Enhance TypedDict docs around required/optional keys (GH-109547) (#109983)

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