(node, clean=True)
return text
Return the docstring for the given node or None if no docstring can
    be found.  If the node provided does not have docstrings a TypeError
    will be raised.

    If *clean* is `True`, all tabs are expanded to spaces and any whitespace
    that can be uniformly removed from the second line onwards is removed.
Return the docstring for the given node or None if no docstring can
    be found.  If the node provided does not have docstrings a TypeError
    will be raised.
Return the docstring for the given node or None if no docstring can be found . If the node provided does not have docstrings a TypeError will be raised .
def get_docstring(node, clean=True):
    """
    Return the docstring for the given node or None if no docstring can
    be found.  If the node provided does not have docstrings a TypeError
    will be raised.

    If *clean* is `True`, all tabs are expanded to spaces and any whitespace
    that can be uniformly removed from the second line onwards is removed.
    """
    if not isinstance(node, (AsyncFunctionDef, FunctionDef, ClassDef, Module)):
        raise TypeError("%r can't have docstrings" % node.__class__.__name__)
    if not(node.body and isinstance(node.body[0], Expr)):
        return None
    node = node.body[0].value
    if isinstance(node, Str):
        text = node.s
    elif isinstance(node, Constant) and isinstance(node.value, str):
        text = node.value
    else:
        return None
    if clean:
        import inspect
        text = inspect.cleandoc(text)
    return text
def get_docstring ( node , clean = True ) : if not isinstance ( node , ( AsyncFunctionDef , FunctionDef , ClassDef , Module ) ) : raise TypeError ( "%r can't have docstrings" % node . __class__ . __name__ ) if not ( node . body and isinstance ( node . body [ 0 ] , Expr ) ) : return None node = node . body [ 0 ] . value if isinstance ( node , Str ) : text = node . s elif isinstance ( node , Constant ) and isinstance ( node . value , str ) : text = node . value else : return None if clean : import inspect text = inspect . cleandoc ( text ) return text