3 ms·
Dataclasses are orthogonal to typing (IMO), they just use types for their evocative syntax for fields. Dataclasses are nice - they are a pared down version of
by kzrdude 3y ago
Dataclasses are orthogonal to typing (IMO), they just use types for their evocative syntax for fields.
Dataclasses are nice - they are a pared down version of the attrs library, so a simple way to create data-only or mainly-data records through classes. They are not intended to replace all classes.