Improved signatures in sphinx.ext.autodoc documentation

Sphinx, the documentation tool, comes with an extension, sphinx.ext.autodoc, which lets you source some of your documentation from your code and its docstrings. sigtools.sphinxext, if activated, automatically improves signatures like explained above.

To activate it, add 'sigtools.sphinxext' to the extensions list in your Sphinx’s

extensions = [
    'sphinx.ext.autodoc', ...

If you want to use the automatic signature gathering while ignoring the docstring in order to supply your own explanations, you can use this directive instead of autofunction:

.. autosignature::

Documents a Python object while ignoring the source docstring. sigtools.signature is used to retrieve the object’s call signature