You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> +1 1
Traceback (most recent call last):
File "main.py", line 47, in <module>
cli()
File "main.py", line 31, in cli
shell()
File "main.py", line 43, in shell
print(main(code))
File "main.py", line 16, in main
output = run(code, ctx=ctx)
File "interpreter.py", line 55, in run
return Interprete().main(parse(unpack(structure(tokenize(text)))), ctx)
File "interpreter.py", line 19, in main
main_output = self.interprete(tokens, ctx)
File "interpreter.py", line 47, in interprete
output = func(*list(args))
File "functions.py", line 39, in Add
if typecheck(args=[a, b], types=[Rational, Rational]):
File "helper.py", line 43, in typecheck
raise TypeError(f"Did you mean: [{args}]?") from None
TypeError: Did you mean: [[1, 1]]?
The error can be in the typecheck function, the functions in functions.py, Rational limitations, line 47 of interperator.py, and line 23 of parse.py.
The text was updated successfully, but these errors were encountered:
The error can be in the typecheck function, the functions in functions.py, Rational limitations, line 47 of interperator.py, and line 23 of parse.py.
The text was updated successfully, but these errors were encountered: