eckity.base.utils
This module implements some utility functions.
def
arity(func):
9def arity(func): 10 """ 11 Parameters 12 ---------- 13 func : function 14 A function. 15 16 Returns 17 ------- 18 arity : int 19 The function's arity. 20 """ 21 return len(getfullargspec(func)[0])
Parameters
- func (function): A function.
Returns
- arity (int): The function's arity.