Fix #8105: autodoc: the signature of decorated class is incorrect

In #7651, autodoc stops to undecorate the functions on getting the
signature from the callables.  But some kinds of decorators conceals
the correct signature because they pass through their arguments via
`(*args, **kwargs)`.

This restarts to undecorate the functions again as before #7651.
This commit is contained in:
Takeshi KOMIYA
2020-11-04 02:26:13 +09:00
parent 0cf1632edf
commit 6d05b1aeb3
7 changed files with 70 additions and 5 deletions

View File

@@ -7,9 +7,14 @@ Dependencies
Incompatible changes
--------------------
* #8105: autodoc: the signature of class constructor will be shown for decorated
classes, not a signature of decorator
Deprecated
----------
* The ``follow_wrapped`` argument of ``sphinx.util.inspect.signature()``
Features added
--------------
@@ -21,6 +26,8 @@ Bugs fixed
----------
* #7613: autodoc: autodoc does not respect __signature__ of the class
* #8105: autodoc: the signature of class constructor is incorrect if the class
is decorated
Testing
--------