11 ms·
My rule of the thumb is that Dataclasses are for compile-time type-checking, pydantic classes are for run time type checking.
by afiodorov 1y ago
My rule of the thumb is that Dataclasses are for compile-time type-checking, pydantic classes are for run time type checking.