def __eq__(self, other: GenerationStep) -> bool: return object_attribute_dicts_equal( one_dict=self._asdict(), other_dict=other._asdict() )
def __eq__(self, other: Base) -> bool: return object_attribute_dicts_equal( one_dict=self.__dict__, other_dict=other.__dict__ )