import ast


def all_args_have_type(function_node: ast.FunctionDef, tree: ast.AST) -> bool:
    """
    Returns true if all arguments have a type annotation. (i.e. arg.annotation)
    """
    for arg in function_node.args.args:
        if not arg.annotation:
            return False
    return True