Files
sphinx/tests/roots
Jeremy Maitin-Shepard 6c969ac87e Fix autodoc_docstring_signature support for __init__ and __new__
The `MethodDocumenter.get_doc` method added by
51ae283a38 prevents
DocstringSignatureMixin from working correctly for __init__ and
__new__ methods.  Additionally, the __new__ docstring was not obtained
correctly.

This commit checks for `self._new_docstrings` being set, and also
corrects the logic for obtaining the __new__ docstring.

There still remains the issue that when the class signature is
obtained from the signature of __init__ or __new__, only the real
signature is used, due to the use of `sphinx.util.inspect.signature`;
the autodoc_docstring_signature option does not have any effect.
2021-07-31 09:32:40 -07:00
..
2021-04-29 14:48:56 +02:00
2021-01-01 13:40:48 +09:00
2018-03-23 23:41:09 +09:00
2021-06-03 16:42:57 +02:00
2021-06-03 16:52:38 +02:00
2020-11-11 13:19:05 +01:00
2019-02-16 01:55:58 +09:00
2019-02-03 19:53:12 +09:00
2020-02-12 01:39:13 +09:00
2020-07-19 00:43:11 +00:00
2018-02-25 23:44:37 +09:00
2020-01-25 17:02:59 +01:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2021-07-08 08:16:22 +09:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00