sphinx-autoapi icon indicating copy to clipboard operation
sphinx-autoapi copied to clipboard

Treat methods decorated with `functools.cached_property` as properties

Open michellewang opened this issue 10 months ago • 0 comments

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): Screenshot 2024-04-11 at 9 30 44 PM

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.

michellewang avatar Apr 12 '24 01:04 michellewang