Skip to content

Create an extension for dataclass based classes #596

Closed

Description

@tristanlatr

@dataclasses.dataclass can be used from python3.7, it acts a bit like @attr.s, so adding support for it shouldn't be too complicated.

Also I realize that there are many modules that converts class variables into instance variables (pydantic, dataclasses, attrs, django models, and others), so there is probably something to do to avoid to much code duplications.

Activity

  1. tristanlatr commented on Jun 10, 2023

    @tristanlatr
    ContributorAuthor

    Same goes for namedtuples.

  2. tristanlatr commented on Jun 10, 2023

    @tristanlatr
    ContributorAuthor

    And eventually the datatclass decorator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions