get_num_args

pyapprox.models.wrappers.get_num_args(function)[source]

Return the number of arguments of a function. If function is a member function of a class the self argument is not counted.

Parameters
functioncallable

The Python callable to be interrogated