def __eq__(self, other):
    """Compare two index properties for equality."""
    if not isinstance(other, IndexProperty):
      return NotImplemented
    return self.name == other.name and self.direction == other.direction
def __eq__ ( self , other ) : if not isinstance ( other , IndexProperty ) : return NotImplemented return self . name == other . name and self . direction == other . direction
Compare two index properties for equality.