def __eq__(self, other):
    if isinstance(other, AsyncResult):
        return (other.id == self.id)
    elif isinstance(other, string_t):
        return (other == self.id)
    return NotImplemented
def __eq__(self, other):
    if isinstance(other, AsyncResult):
        return (other.id == self.id)
    elif isinstance(other, string_t):
        return (other == self.id)
    return NotImplemented