diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index c730fefdb6c..df469a5ae7a 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -355,7 +355,7 @@ def iscoroutinefunction(obj: Any) -> bool: def isproperty(obj: Any) -> bool: """Check if the object is property.""" - if sys.version_info > (3, 8): + if sys.version_info >= (3, 8): from functools import cached_property # cached_property is available since py3.8 if isinstance(obj, cached_property): return True