(node)
return return_annotation
Get the return annotation of a node.
    :type node: astroid.nodes.FunctionDef
Get the return annotation of a node.
    :type node: astroid.nodes.FunctionDef
Get the return annotation of a node . : type node : astroid . nodes . FunctionDef
def get_return_annotation(node):
    """Get the return annotation of a node.
    :type node: astroid.nodes.FunctionDef
    """
    return_annotation = None

    if node.returns:
        return_annotation = format_annotation(node.returns)
    elif node.type_comment_returns:
        return_annotation = format_annotation(node.type_comment_returns)

    return return_annotation
def get_return_annotation ( node ) : return_annotation = None if node . returns : return_annotation = format_annotation ( node . returns ) elif node . type_comment_returns : return_annotation = format_annotation ( node . type_comment_returns ) return return_annotation