mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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.
8 lines
116 B
Python
8 lines
116 B
Python
from functools import cached_property
|
|
|
|
|
|
class Foo:
|
|
@cached_property
|
|
def prop(self) -> int:
|
|
return 1
|