get_num_args

sherpa.utils.get_num_args(func: Callable) tuple[int, int, int][source] [edit on github]

Return the number of arguments for a function.

Parameters:
func

The function to query.

Returns:
ntotal, npos, nkeywordint, int, int

The total number of arguments, the number of positional arguments, and the number of keyword arguments.