RichRepr

class of dascore.utils.display source

RichRepr()

Print an object the way its __rich__ renders it.

One definition for every class which has a rich rendering, so a plain terminal and a rich one say the same thing and neither drifts from the other. A host states __rich__; this states the rest.

List this before any base which defines its own __str__, as a pydantic model does. The one the MRO reaches first is the only one called, and a host which lists this last prints a field dump.