(scope_node)
return '%s\n\n%s' % (call_signature, doc)
Return a document string including call signature.
Return a document string including call signature.
Return a document string including call signature .
def get_doc_with_call_signature(scope_node):
    """
    Return a document string including call signature.
    """
    call_signature = None
    if scope_node.type == 'classdef':
        for funcdef in scope_node.iter_funcdefs():
            if funcdef.name.value == '__init__':
                call_signature = \
                    get_call_signature(funcdef, call_string=scope_node.name.value)
    elif scope_node.type in ('funcdef', 'lambdef'):
        call_signature = get_call_signature(scope_node)

    doc = clean_scope_docstring(scope_node)
    if call_signature is None:
        return doc
    return '%s\n\n%s' % (call_signature, doc)
def get_doc_with_call_signature ( scope_node ) : call_signature = None if scope_node . type == 'classdef' : for funcdef in scope_node . iter_funcdefs ( ) : if funcdef . name . value == '__init__' : call_signature = get_call_signature ( funcdef , call_string = scope_node . name . value ) elif scope_node . type in ( 'funcdef' , 'lambdef' ) : call_signature = get_call_signature ( scope_node ) doc = clean_scope_docstring ( scope_node ) if call_signature is None : return doc return '%s\n\n%s' % ( call_signature , doc )