Open Yura52 opened 2 years ago
I confirm this bug occurs even in the latest version (Sphinx: 4.3.0, Python: 3.9.5). It seems to happen when type hints are used. If I remove them, the extra parameters section disappears from the class description.
autodoc_class_signature = "separated"
(which I didn't know was introduced) corrects the behaviour for me because I want to have parameters within __init__()
's description. However, the default option (autodoc_class_signature = "mixed"
) doesn't behave as expected.
Describe the bug
IndexLoader
there is a strange sign of__init__
's signature after the autosummary table (see the screenshot)How to Reproduce
Expected behavior
No response
Your project
https://github.com/Yura52/zero/tree/main/docs
Screenshots
No response
OS
Mac
Python version
3.7.11
Sphinx version
4.1.2
Sphinx extensions
'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.napoleon', 'sphinx.ext.viewcode', 'sphinxcontrib.spelling', 'sphinx_copybutton',
Extra tools
No response
Additional context
No response