dataclass
Dataclass is a Python construct that provides a decorator and helper functions for creating classes intended primarily for storing data. It automates common boilerplate tasks by generating methods such as init, repr, and eq, and, if requested, ordering methods. Introduced in Python 3.7 as part of the dataclasses module, it can also be backported to earlier versions via a separate package.
Usage: declare a class with type-annotated attributes and apply @dataclass. Fields with defaults must follow non-default
Dataclasses provide helpful utilities such as asdict() and astuple() to convert instances to dictionaries or tuples,
Limitations: dataclasses rely on type annotations and simple storage patterns; they are not a full object system