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

Question/feature request: drop-in replace pydantic dataclass #24

Open
vedal opened this issue Nov 1, 2022 · 3 comments
Open

Question/feature request: drop-in replace pydantic dataclass #24

vedal opened this issue Nov 1, 2022 · 3 comments

Comments

@vedal
Copy link

vedal commented Nov 1, 2022

Thanks alot for an amazing package!! Has most of the stuff I've been looking around for in (many) other packages.
Is it possible to replace python built-in dataclass with pydantic dataclass to allow for run-time data validation with pyrallis?
It would be a great feature improvement. I havent found the argparse+pydantic combination anywhere else.

@eladrich
Copy link
Owner

eladrich commented Nov 2, 2022

Interesting idea! I'm actually not sure but we will give it a try and see whether that can be easily achieved

@vedal
Copy link
Author

vedal commented Nov 2, 2022

That's great @eladrich!!!
Here is an example of what I mean by triggering run-time validation

@SWHL
Copy link

SWHL commented Sep 30, 2024

I also look forward to this tool supporting pydance dataclass.

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

3 participants