7.2.8.10. parent_func¶
- parent_func(func, input_id=None)[source]¶
Return the parent function of a wrapped function (wrapped with
functools.partial
andadd_args
).- Parameters:
func (callable) – Wrapped function.
input_id (int) – Index of the first input of the wrapped function.
- Returns:
Parent function.
- Return type:
callable