

def __eq__(self, other):
    if isinstance(other, Contact):
        return (self.id == self.id)
    elif isinstance(other, str):
        return (self.id == other)
    else:
        return False

dataset/ETHPy150Open lbryio/lbry/lbrynet/dht/contact.py Contact.__eq__/VarMisuse@28/31 `other`->`self`