Maybe @autodict #7 will be a preferred way to go here. If one needs eq to be generated and be based on some attributes equalities, simply adding @autodict should work. Indeed this adds Mapping as a subclass, which implements it already by comparing the dicts