4 ms·
One explicit difference is that dataclasses don't support validating nested objects. I'd use it for passing flat structures as function args rather than a mass
by meander_water 1y ago
One explicit difference is that dataclasses don't support validating nested objects.
I'd use it for passing flat structures as function args rather than a massive list of individual args.