Re:Don't let dicts spoil your code
by seabrookmx on Wednesday October 09, 2024 @12:56AM
(#41784628)
Subclassing NamedTuple is very ergonomic, and given they're immutable unlike data classes I often reach for them by default. I still use Pydantic when I want custom validation or when it ties into another lib like FastAPI.
[ Parent
| on HN ]