mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
lint
This commit is contained in:
parent
21c47db6c1
commit
ebb88e6c6a
24 changed files with 1215 additions and 814 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from copy import deepcopy
|
||||
|
||||
from .Exceptions import BFSemanticError
|
||||
|
||||
functions = dict() # Global dictionary of function_name --> FunctionCompiler objects
|
||||
|
|
@ -30,4 +31,7 @@ def check_function_exists(function_token, parameters_amount):
|
|||
|
||||
function = functions[function_name]
|
||||
if len(function.parameters) != parameters_amount:
|
||||
raise BFSemanticError("Function '%s' has %s parameters (called it with %s parameters)" % (str(function_token), len(function.parameters), parameters_amount))
|
||||
raise BFSemanticError(
|
||||
"Function '%s' has %s parameters (called it with %s parameters)"
|
||||
% (str(function_token), len(function.parameters), parameters_amount)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue