<% page_style = 'function' if node.is_constructor: page_style = 'constructor' elif node.is_method: page_style = 'method' %> % if node.parent is not None: % else: % endif ${formatter.format_type(node.retval.type) | x} ${node.symbol} % if node.is_method: ${node.parent.ctype} * self % endif % for arg in node.parameters: % if arg.type.ctype == '': % else: ${formatter.format_type(arg.type) | x} ${arg.argname} % endif % endfor ${node.name} % if len(node.parameters) != 0: @accepts(\ % for arg, ix in zip(node.parameters, range(len(node.parameters))): ${formatter.format_type(arg.type) | x}\ % if ix != len(node.parameters) - 1: , \ %endif % endfor ) % endif @returns(${formatter.format_type(node.retval.type) | x}) def \ ${node.name}(\ % for arg, ix in zip(node.parameters, range(len(node.parameters))): ${arg.argname}\ % if ix != len(node.parameters) - 1: , \ %endif % endfor ) ${formatter.format(node.doc)} % if node.parameters or node.retval: % for arg, ix in zip(node.parameters, range(len(node.parameters))): % endfor % if node.retval and node.retval.type.ctype != 'void': % endif

${arg.argname} :

${formatter.format(arg.doc)}

Returns :

${formatter.format(node.retval.doc)}
% endif % if node.version:

Since ${node.version}

% endif