Esempio n. 1
0
def verify_min_callable_length(operator: Expression, expected: int, actual: int):
    if (expected > actual):
        raise CallableResolutionError(''.join(['{}'.format(operator), ' expected at least ', '{}'.format(
            expected), ' operands, received ', '{}'.format(actual), '.']))
 def execute(self, operands: List[Expression], frame: Frame,
             gui_holder: Holder):
     raise CallableResolutionError(
         "Variadic type parameter must be within a parameter list.")
 def execute(self, operands: List[Expression], frame: Frame,
             gui_holder: Holder):
     raise CallableResolutionError(
         "Cannot evaluate unquote-splicing outside quasiquote.")
Esempio n. 4
0
def verify_min_callable_length(operator: Expression, expected: int, actual: int):
    if expected > actual:
        raise CallableResolutionError(f"{operator} expected at least {expected} operands, received {actual}.")