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

[Refac] Move dataclasses to Pydantic #541

Open
smitchaudhary opened this issue Aug 22, 2024 · 2 comments
Open

[Refac] Move dataclasses to Pydantic #541

smitchaudhary opened this issue Aug 22, 2024 · 2 comments
Assignees

Comments

@smitchaudhary
Copy link
Collaborator

No description provided.

@smitchaudhary smitchaudhary self-assigned this Aug 22, 2024
@mlahariya
Copy link
Collaborator

@smitchaudhary - Can you please provide which use case this might be needed for?

@smitchaudhary
Copy link
Collaborator Author

Hey @mlahariya, this is not use case specific. The motivation was that since some of the dataclasses that we use, the likes of, FeatureMapConfig, AnsatzConfig etc need to validate the input in a bunch of different ways in the __post_init__. Pydantic should allow for all this validation with the built in features.

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