Skip to content

Implement typecast for a generic dataclass #3

@anatoly-scherbakov

Description

@anatoly-scherbakov

It is not currently possible to specify the transformation of the form D → T, where D is any dataclass. Structural subtyping might help; otherwise, we will have to create a special case, like a specialized protocol inside the library itself which only serves as a convenience.

Relevant: python/mypy#6568

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions