Files
sphinx/tests
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
..
2020-11-20 19:43:02 +01:00
2021-01-01 13:40:48 +09:00
2021-07-08 08:16:22 +09:00
2021-07-08 08:16:22 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:57:19 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-03-20 23:25:57 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-06-30 21:24:06 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-04-29 14:48:56 +02:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:57:19 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:57:19 +09:00
2021-01-01 13:40:48 +09:00
2021-07-07 02:06:30 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:57:19 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-07-08 08:16:22 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00