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 for

  • name (Optional[str], default: None) – The name of the argument

  • idx (Optional[int], default: None) – the index of the argument in the inputs

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.