Skip to content

Commit 2934f09

Browse files
committed
added math.factorial
1 parent c28ad75 commit 2934f09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mrpython/typechecking/typechecker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,6 +2441,7 @@ def type_compare_DictType(expected_type, ctx, expr, expr_type, raise_error=True)
24412441
, 'math.acosh' : FunctionType([FloatType()], FloatType())
24422442
, 'math.asinh' : FunctionType([FloatType()], FloatType())
24432443
, 'math.atanh' : FunctionType([FloatType()], FloatType())
2444+
, 'math.factorial' : FunctionType([IntType()], IntType())
24442445
}
24452446

24462447

0 commit comments

Comments
 (0)