[issue3422] sphinx.doc.autodoc: Hook for changing argspec

Pauli Virtanen report at bugs.python.org
Thu Jul 24 23:11:09 CEST 2008


Pauli Virtanen <pav at iki.fi> added the comment:

Suggested patch attached. Tested on Numpy documentation.

It adds a new signal,

    autodoc-process-signature(app, what, name, obj, options,
                              signature, return_annotation)

which is assumed to return either None or a 
new (signature, return_annotation) tuple. Warnings are raised
only if introspection fails and none of the event handlers returns
a new signature.

----------
keywords: +patch
Added file: http://bugs.python.org/file10971/autodoc-process-signature.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3422>
_______________________________________


More information about the Python-bugs-list mailing list