def get_all_args ( fn ) -> list : sig = inspect . signature ( fn ) return list ( sig . parameters )
python print function name and all params
Returns a list of all arguments for the function fn .
def get_all_args(fn) -> list:
    """
    Returns a list of all arguments for the function fn.

    >>> def foo(x, y, z=100): return x + y + z
    >>> get_all_args(foo)
    ['x', 'y', 'z']
    """
    sig = inspect.signature(fn)
    return list(sig.parameters)