(node)
return doc or ""
Get the docstring of a node, using a parent docstring if needed.

    :param node: The node to get a docstring for.
    :type node: astroid.nodes.ClassDef
Get the docstring of a node, using a parent docstring if needed.
Get the docstring of a node using a parent docstring if needed .
def get_class_docstring(node):
    """Get the docstring of a node, using a parent docstring if needed.

    :param node: The node to get a docstring for.
    :type node: astroid.nodes.ClassDef
    """
    doc = node.doc

    if doc is None:
        for base in node.ancestors():
            if base.qname() in (
                "__builtins__.object",
                "builtins.object",
                "builtins.type",
            ):
                continue
            if base.doc is not None:
                return base.doc

    return doc or ""
def get_class_docstring ( node ) : doc = node . doc if doc is None : for base in node . ancestors ( ) : if base . qname ( ) in ( "__builtins__.object" , "builtins.object" , "builtins.type" , ) : continue if base . doc is not None : return base . doc return doc or ""