def invert(self, operand: IndexOpsLike) -> IndexOpsLike:
    raise TypeError(('Unary ~ can not be applied to %s.' % self.pretty_name))
def invert(self, operand: IndexOpsLike) -> IndexOpsLike:
    raise TypeError(('Unary ~ can not be applied to %s.' % self.pretty_name))