Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an extension for dataclass based classes #596

Open
tristanlatr opened this issue Jun 2, 2022 · 2 comments · Fixed by #577
Open

Create an extension for dataclass based classes #596

tristanlatr opened this issue Jun 2, 2022 · 2 comments · Fixed by #577

Comments

@tristanlatr
Copy link
Contributor

@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.

@tristanlatr
Copy link
Contributor Author

Same goes for namedtuples.

@tristanlatr
Copy link
Contributor Author

And eventually the datatclass decorator?

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

Successfully merging a pull request may close this issue.

1 participant