Closed
Description
Numpydoc doesn't render attributes decorated with cached_property
in the Attribute
section. I think it is due to this line:
numpydoc/numpydoc/docscrape.py
Line 709 in b138ea7
which can be changed to:
from functools import cached_property
...
func is None
or isinstance(func, property)
or isinstance(func, cached_property)
or inspect.isdatadescriptor(func)
to fix the issue.
xref scipy/scipy#16002
Metadata
Metadata
Assignees
Labels
No labels