

def linearize_actual_args(fn, args):
    (untyped_fn, closure_args) = unpack_closure(fn)
    if isinstance(args, (list, tuple)):
        args = ActualArgs(args)
    args = args.prepend_positional(fn)
    arg_types = args.transform(get_type)
    if isinstance(untyped_fn.args, FormalArgs):
        try:
            combined_args = untyped_fn.args.linearize_without_defaults(args, tuple_elts)
        except UnexpectedKeyword as e:
            e.fn_name = fn.name
            raise
    else:
        combined_args = list(args)
    return (untyped_fn, combined_args, arg_types)

dataset/ETHPy150Open iskandr/parakeet/parakeet/type_inference/linearize_args.py linearize_actual_args/VarMisuse@51/68 `closure_args`->`fn`