sphinx-autoapi
sphinx-autoapi copied to clipboard
Treat methods decorated with `functools.cached_property` as properties
Thank you for this great project!
I notice that methods decorated with functools.cached_property
(introduced in Python 3.8) render as generic methods, while those decorated with property
are handled differently (leading property
keyword, no round brackets):
This is misleading since cached properties are not supposed to be called like normal methods. Would it be possible to make it so that cached properties are rendered in the same way as properties? It looks like sphinx.ext.autodoc
has been updated to do this.