3 ms·
Extend from pydantic.BaseModel instead of using the dataclasses decorator
by goodoldneon 4y ago
Extend from pydantic.BaseModel instead of using the dataclasses decorator
- zzzeek 4y agonot SQLAlchemy compatible, interest lost :)
- goodoldneon 4y agoI didn’t mean “always use Pydantic instead of dataclasses”. I meant “dataclasses have a default property problem but it’s solvable since Pydantic handles them well”