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 decorating a method with the python implementation of classmethod described here sphinx crashes complaining that the decorator has no attribute __func__
$ git clone https://github.com/fbessou/sphinx-getitem
$ cd sphinx-getitem
$ pip install sphinx # or use a virtualenv
$ cd doc
$ make html
The build crashes on the following error:
File "<ENV>/lib/python3.7/site-packages/sphinx/util/inspect.py", line 853, in getdoc
return getdoc(meth.__func__)
AttributeError: 'ClassMethod' object has no attribute '__func__'
Expected behavior
Sphinx shouldn't crash and the documented method should appear in the built documentation.
Describe the bug
When decorating a method with the python implementation of
classmethod
described here sphinx crashes complaining that the decorator has no attribute__func__
Here is a copy of the ClassMethod definition:
How to Reproduce
The build crashes on the following error:
Expected behavior
Sphinx shouldn't crash and the documented method should appear in the built documentation.
Your project
https://github.com/fbessou/sphinx-getitem
Screenshots
No response
OS
Linux (Debian Buster)
Python version
3.7
Sphinx version
4.2.0
Sphinx extensions
sphix.ext.autodoc
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: