Skip to content

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

@finite-state-machine

Description

@finite-state-machine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions