Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pydantic is everything I want Python dataclasses to be.

While Pydantic `BaseModel`s, like dataclasses, are still "classes", I consider that an implementation detail of how records are implemented in Python - thus not really contradicting the article's recommendation against using a class.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: