def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, InventorySettings):
            return False

        return self.__dict__ == other.__dict__
def __eq__ ( self , other ) : if not isinstance ( other , InventorySettings ) : return False return self . __dict__ == other . __dict__
Returns true if both objects are equal