Inspect the parameters of a function.
This function returns the names of all positional-or-keyword parameters
and a dictionary of those having a default value.
- Parameters:
func (callable) – The function to inspect.
ignore_self (bool, optional) – If True, ignore the first parameter if it is named "self".
Default is True.
- Returns:
all_params (list of str) – Names of all the parameters.
defaults (dict) – Parameters that have a default value, mapped to that value.