get_num_args

sherpa.utils.get_num_args(func)[source]

Return the number of arguments for a function.

Parameters:func – The function to query.
Returns:ntotal, npos, nkeyword – The total number of arguments, the number of positional arguments, and the number of keyword arguments.
Return type:int, int, int