Open elfjes opened 2 years ago
Not sure if related to this bug or a separate bug. For my dispatch methods, I have the @staticmethod
decorator underneath the @singledispatchmethod
and @methodname.register(type)
decorators. The word static is not appearing next to the method name.
Describe the bug
When autodoc-ing a
functools.singledispatchmethod
, theMethodDocumenter
for the registered dispatchers do not receive/parse a validfullname
, which then cause the event handlers for this method to be called withNone
as thename
argument instead of their actual name.How to Reproduce
foo.py
index.rst
conf.py
Expected behavior
autdoc event handlers should always be called with the
name
argument setYour project
-
Screenshots
No response
OS
all
Python version
3.8+
Sphinx version
5.0.1
Sphinx extensions
sphinx.ext.autodoc
Extra tools
No response
Additional context
No response