Y
Hacker News
new
|
ask
|
show
|
jobs
by
ic_fly2
331 days ago
pydantic basemodel has made dataclasses redundant.
1 comments
_Wintermute
331 days ago
Dataclasses have the one massive benefit of not being an additional dependency.
link
ddejohn
331 days ago
This. 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.
link