

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

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py IndexProperty.__eq__/VarMisuse@19/33 `other`->`self`