Skip to content

Allow Mapping type as serializer context #636

Open
@adrianmrit

Description

@adrianmrit

TypedDict t is not compatible with dict, see https://peps.python.org/pep-0589/#type-consistency. However, they are very practical, for instance, to type hint the context of serializers that expect more arguments.

Using a Mapping for the type would give more flexibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions