def __pydonicli_declare_args__(var_dict):
    """
    Limit a dictionary, usually `locals()` to exclude modules and functions and thus contain
    only key:value pairs of variables.
    """
    vars_only = {}

    for k, v in var_dict.items():
        dtype = v.__class__.__name__
        if dtype not in ['module', 'function']:
            vars_only[k] = v

    return vars_only