def __eq__(self, other):
if isinstance(other, self.__class__):<EOL><INDENT>my_dict = self.to_dict()<EOL>other_dict = other.to_dict()<EOL>[my_dict.pop(attr, None) for attr in self.amaas_model_attributes()]<EOL>[other_dict.pop(attr, None) for attr in self.amaas_model_attributes()]<EOL>return my_dict == other_dict<EOL><DEDENT>return NotImplemented<EOL>
Override the default Equals behavior