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

Support for Pydantic Dataclass #26

Open
matt-koevort opened this issue May 7, 2020 · 1 comment
Open

Support for Pydantic Dataclass #26

matt-koevort opened this issue May 7, 2020 · 1 comment

Comments

@matt-koevort
Copy link

Dataclasses are really useful in some instances. Pydantic has a drop-in replacement for dataclasses - but does not seem to supported by this library. Not sure how difficult it would be to include it? I know the classes have a __pydantic_model__ variable.

@necaris
Copy link
Collaborator

necaris commented May 9, 2020

That's an interesting idea -- we haven't really looked into that. Supporting standard library dataclasses is a little out of the scope of this library IMHO, but Pydantic dataclasses should be easier to handle if they're easy to map to a Pydantic model.

I don't have a specific use case for Pydantic at my current work, so I'm not able to spend much time on it -- if you'd be interested in looking into it I'd be happy to help however I can, though! Otherwise I'm not sure when I'll be able to look into this.

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

No branches or pull requests

2 participants