Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ic_fly2
· 1y ago · 0 comments
pydantic basemodel has made dataclasses redundant.
Comments
[–]
_Wintermute
1y ago
Dataclasses have the one massive benefit of not being an additional dependency.
[–]
ddejohn
1y 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.