def __neg__(self): op = get_neg_operator(self.operator, is_unary=True) # pragma: no cover if not op: # pragma: no cover return # pragma: no cover return self.__class__(self.value, op) # pragma: no cover
def __neg__(self): op = get_neg_operator(self.operator, is_unary=False) if not op: return # pragma: no cover return self.__class__(self.left, self.right, op)