arg_info#
- ivy.arg_info(fn, *, name=None, idx=None)[source]#
Return the index and inspect.Parameter representation of the specified argument. In the form of a dict with keys “idx” and “param”.
- Parameters:
fn (
Callable
) – The function to retrieve the argument information forname (
Optional
[str
]) – The name of the argument (default:None
)idx (
Optional
[int
]) – the index of the argument in the inputs (default:None
)
- Returns:
ret – a dict containing the idx, and the inspect.Parameter for the argument, which itself contains the parameter name, type, and other helpful information.