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”.

  • fn (Callable) – The function to retrieve the argument information for

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

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


ret – a dict containing the idx, and the inspect.Parameter for the argument, which itself contains the parameter name, type, and other helpful information.