mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #7613: autodoc: autodoc does not respect __signature__ of the class
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user