With dataclasses Rich will essentially replace the dataclass __repr__
by inspecting the dataclass fields. It does this so it can know how to expand the dataclass on to multiple lines with indentation.
For example, here is a dataclass
@dataclass
class DC:
foo: str
bar: int