8 ms·
Dataclasses have the one massive benefit of not being an additional dependency.
by _Wintermute 1y ago
Dataclasses have the one massive benefit of not being an additional dependency.
- ddejohn 1y agoThis. You also don't really need Pydantic unless you're de/serializing data from external sources. A dataclass is perfectly cromulent if you're just passing around data internally.