mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
The method new is an alternative to __init__, but autoclass does not respect __new__. This commit enhances the directive autoclass:: to try __new__ method's docstring, if __init__ method's docstring is missing or empty. The commit also adds tests and updates the documentation. |
||
---|---|---|
.. | ||
autodoc.rst | ||
autosummary.rst | ||
coverage.rst | ||
doctest.rst | ||
example_google.py | ||
example_google.rst | ||
example_numpy.py | ||
example_numpy.rst | ||
extlinks.rst | ||
graphviz.rst | ||
ifconfig.rst | ||
inheritance.rst | ||
intersphinx.rst | ||
linkcode.rst | ||
math.rst | ||
napoleon.rst | ||
todo.rst | ||
viewcode.rst |