Skip to content

Add extra_items and closed support to TypedDict #2921

@hgl

Description

@hgl

Is your feature request related to a problem? Please describe.
additionalProperties: false and additionalProperties: { type: "boolean" } naturally translate to closed=trure and extra_items=bool respectively. See https://typing.python.org/en/latest/spec/typeddict.html#class-based-syntax

Describe the solution you'd like
Supported without any extra flags

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions