Using position-only parameter syntax in __init__
prevents docstrings for attributes from being parsed
#9968
Labels
Milestone
Describe the bug
I'm currently using position-only parameters in most of my functions, including
__init__
, however this prevents inline, before, and after doc strings from being parsed.How to Reproduce
Once
index.html
is open, you will see that onlytest.WithoutPositional
has thea
property documented.Expected behavior
Both classes should have the
a
property documentedYour project
https://github.com/bryanforbes/sphinx-positional-only-issue
Screenshots
OS
macOS 11.6.1
Python version
3.10
Sphinx version
4.3.1
Sphinx extensions
sphinx.ext.autodoc, sphinx.ext.napoleon
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: