Skip to content

typing.TypedDict documentation doesn't list minimum version for __required_keys__ and __optional_keys__ #94439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
finite-state-machine opened this issue Jun 30, 2022 · 1 comment
Labels
docs Documentation in the Doc dir topic-typing

Comments

@finite-state-machine
Copy link
Contributor

Documentation

The TypeDict class exposes attributes __required_keys__ and __optional_keys__ starting in Python 3.9, but the documentation doesn't list the minimum version for these features, implying that they're available in Python 3.8.

c.f. https://github.com/python/cpython/blob/main/Doc/library/typing.rst near line 1827.

@finite-state-machine finite-state-machine added the docs Documentation in the Doc dir label Jun 30, 2022
@finite-state-machine finite-state-machine changed the title typing.TypedDict documentation doesn't list minimum version for __required_keys and __optional_keys typing.TypedDict documentation doesn't list minimum version for __required_keys and __optional_keys__ Jun 30, 2022
@finite-state-machine finite-state-machine changed the title typing.TypedDict documentation doesn't list minimum version for __required_keys and __optional_keys__ typing.TypedDict documentation doesn't list minimum version for __required_keys__ and __optional_keys__ Jun 30, 2022
JelleZijlstra pushed a commit that referenced this issue Aug 13, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 13, 2022
…_` and `__optional_keys__` (pythonGH-95373)

(cherry picked from commit f235178)

Co-authored-by: Howie Zhao <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 13, 2022
…_` and `__optional_keys__` (pythonGH-95373)

(cherry picked from commit f235178)

Co-authored-by: Howie Zhao <[email protected]>
miss-islington added a commit that referenced this issue Aug 13, 2022
… `__optional_keys__` (GH-95373)

(cherry picked from commit f235178)

Co-authored-by: Howie Zhao <[email protected]>
pablogsal pushed a commit that referenced this issue Aug 13, 2022
@finite-state-machine
Copy link
Contributor Author

This appears to be resolved:
https://docs.python.org/3.10/library/typing.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir topic-typing
Projects
None yet
Development

No branches or pull requests

2 participants