sphinx/tests/roots/test-ext-autodoc/target/cached_property.py
Takeshi KOMIYA 088b049170 Fix #8103: autodoc: cached_property is not considered as a property
sphinx.util.inspect:isproperty() does not considers that
cached_property decorator that has been added since Python 3.8 is
a kind of properties.  This fixes it.
2020-08-13 23:16:59 +09:00

8 lines
116 B
Python

from functools import cached_property
class Foo:
@cached_property
def prop(self) -> int:
return 1