def __eq__(self, other):
if not isinstance(other, IndexState):<EOL><INDENT>return NotImplemented<EOL><DEDENT>return (self.definition == other.definition and<EOL>self.state == other.state and<EOL>self.id == other.id)<EOL>
Compare two index states.