Merge pull request #2300 from akruis/feature_autoclass_content_from__new__

Feature: enhance autoclass:: to use the docstring of __new__ if __init__ method's is missing of empty
This commit is contained in:
Takeshi KOMIYA
2016-02-14 14:45:25 +09:00
3 changed files with 48 additions and 0 deletions

View File

@@ -314,6 +314,12 @@ There are also new config values that you can set:
.. versionadded:: 0.3
If the class has no ``__init__`` method or if the ``__init__`` method's
docstring is empty, but the class has a ``__new__`` method's docstring,
it is used instead.
.. versionadded:: 1.4
.. confval:: autodoc_member_order
This value selects if automatically documented members are sorted