(node)
return False
Check if the function is decorated as an overload definition.

    :param node: The node to check.
    :type node: astroid.nodes.FunctionDef

    :returns: True if the function is an overload definition, False otherwise.
    :rtype: bool
Check if the function is decorated as an overload definition.
Check if the function is decorated as an overload definition .
def is_decorated_with_overload(node):
    """Check if the function is decorated as an overload definition.

    :param node: The node to check.
    :type node: astroid.nodes.FunctionDef

    :returns: True if the function is an overload definition, False otherwise.
    :rtype: bool
    """
    if not node.decorators:
        return False

    for decorator in node.decorators.nodes:
        if not isinstance(decorator, (astroid.Name, astroid.Attribute)):
            continue

        try:
            if _is_overload_decorator(decorator):
                return True
        except astroid.InferenceError:
            pass

    return False
def is_decorated_with_overload ( node ) : if not node . decorators : return False for decorator in node . decorators . nodes : if not isinstance ( decorator , ( astroid . Name , astroid . Attribute ) ) : continue try : if _is_overload_decorator ( decorator ) : return True except astroid . InferenceError : pass return False