you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 1 year ago

Keep it simple, stupid.

I'd use the built-in dataclass (or something even simpler) where possible. Only when I need more functionalities (e.g. validation) would I switch to using Pydantic model.

  • source