import ast


def has_return_type(function_node: ast.FunctionDef, tree: ast.AST) -> bool:
    """
    Returns true if the function has a return type annotation (function_node.returns).
    """
    return function_node.returns is not None