Fix #7613: autodoc: autodoc does not respect __signature__ of the class

This commit is contained in:
Takeshi KOMIYA
2020-11-01 18:23:24 +09:00
parent 27b1a693d0
commit 9a44e45277
5 changed files with 76 additions and 1 deletions

View File

@@ -40,6 +40,14 @@ def test_classes(app):
'',
]
actual = do_autodoc(app, 'function', 'target.classes.Qux')
assert list(actual) == [
'',
'.. py:function:: Qux(foo, bar)',
' :module: target.classes',
'',
]
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_callable(app):