mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8527 from tk0miya/8111_pretty_change
refactor: pretty change for isproperty()
This commit is contained in:
commit
8ed1e706cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user