def syn_UnaryOp(self, ctx, e): if isinstance(e.op, (ast.Not, ast.Invert)): raise _errors.TyError("Invalid unary operator for operand of type ieee.", e) else: return self