def get_args(fn):
    'Gets the arguments of a function.\n\n    Args:\n        fn (callable): The function to inspect.\n\n    Returns:\n        list: A list of argument names (str) of the function.\n    '
    argspec = _inspect_getargspec(fn)
    args = argspec.args
    if (len(args) == 0):
        args = funcsigs.signature(fn).parameters.keys()
        args = list(args)
    return args
Gets the arguments of a function.

Args:
    fn (callable): The function to inspect.

Returns:
    list: A list of argument names (str) of the function.
def get_args(fn):
    'Gets the arguments of a function.\n\n    Args:\n        fn (callable): The function to inspect.\n\n    Returns:\n        list: A list of argument names (str) of the function.\n    '
    argspec = _inspect_getargspec(fn)
    args = argspec.args
    if (len(args) == 0):
        args = funcsigs.signature(fn).parameters.keys()
        args = list(args)
    return args