From 2934f095f21474a5281787a5a58eecb1c8705cea Mon Sep 17 00:00:00 2001 From: fredokun Date: Fri, 1 Oct 2021 10:25:18 +0200 Subject: [PATCH] added math.factorial --- mrpython/typechecking/typechecker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mrpython/typechecking/typechecker.py b/mrpython/typechecking/typechecker.py index 695f0b7..b65b761 100644 --- a/mrpython/typechecking/typechecker.py +++ b/mrpython/typechecking/typechecker.py @@ -2441,6 +2441,7 @@ def type_compare_DictType(expected_type, ctx, expr, expr_type, raise_error=True) , 'math.acosh' : FunctionType([FloatType()], FloatType()) , 'math.asinh' : FunctionType([FloatType()], FloatType()) , 'math.atanh' : FunctionType([FloatType()], FloatType()) + , 'math.factorial' : FunctionType([IntType()], IntType()) }