(funcdef, width=72, call_string=None)
return '\n'.join(textwrap.wrap(code, width))
Generate call signature of this function.

    :param width: Fold lines if a line is longer than this value.
    :type width: int
    :arg func_name: Override function name when given.
    :type func_name: str

    :rtype: str
Generate call signature of this function.
Generate call signature of this function .
def get_call_signature(funcdef, width=72, call_string=None):
    """
    Generate call signature of this function.

    :param width: Fold lines if a line is longer than this value.
    :type width: int
    :arg func_name: Override function name when given.
    :type func_name: str

    :rtype: str
    """
    # Lambdas have no name.
    if call_string is None:
        if funcdef.type == 'lambdef':
            call_string = '<lambda>'
        else:
            call_string = funcdef.name.value
    if funcdef.type == 'lambdef':
        p = '(' + ''.join(param.get_code() for param in funcdef.get_params()).strip() + ')'
    else:
        p = funcdef.children[2].get_code()
    code = call_string + p

    return '\n'.join(textwrap.wrap(code, width))
def get_call_signature ( funcdef , width = 72 , call_string = None ) : # Lambdas have no name. if call_string is None : if funcdef . type == 'lambdef' : call_string = '<lambda>' else : call_string = funcdef . name . value if funcdef . type == 'lambdef' : p = '(' + '' . join ( param . get_code ( ) for param in funcdef . get_params ( ) ) . strip ( ) + ')' else : p = funcdef . children [ 2 ] . get_code ( ) code = call_string + p return '\n' . join ( textwrap . wrap ( code , width ) )