robotpy-build icon indicating copy to clipboard operation
robotpy-build copied to clipboard

Remove pydantic and switch to dataclasses/validobj

Open virtuald opened this issue 9 months ago • 2 comments

Over the years pydantic has annoyed me in various different ways. I'd like to switch to dataclasses, and use validobj for validation instead.

Doing this for the meson rewrite, but interested in feedback.

virtuald avatar Mar 02 '25 23:03 virtuald

Curious what you find annoying specifically? We've still yet to update to pydantic 2.

auscompgeek avatar Mar 03 '25 03:03 auscompgeek

pydantic has broken at least once or twice over the years, and I feel like there's just been little things that have bubbled up to a general annoyance. I've come to really like dataclasses, so I prefer a solution that can just leverage them. validobj is really simple, and it works.

virtuald avatar Mar 03 '25 04:03 virtuald