You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When autodoc-ing a functools.singledispatchmethod, the MethodDocumenter for the registered dispatchers do not receive/parse a valid fullname, which then cause the event handlers for this method to be called with None as the name argument instead of their actual name.
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
The text was updated successfully, but these errors were encountered: