diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-12-14 01:33:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 01:33:01 +0900 |
commit | 8ed1e706cc495351cda67910d63de585ad724b51 (patch) | |
tree | 24266ad0f06f67ec56079c59bcc2c27aa4b57773 /sphinx/util/inspect.py | |
parent | 399210c807babaa03ae794bb2cd29d13cf8aebc9 (diff) | |
parent | e15f7a1f02e2a47ce70c82109b18ed4665a4dc3b (diff) | |
download | sphinx-git-8ed1e706cc495351cda67910d63de585ad724b51.tar.gz |
Merge pull request #8527 from tk0miya/8111_pretty_change
refactor: pretty change for isproperty()
Diffstat (limited to 'sphinx/util/inspect.py')
-rw-r--r-- | sphinx/util/inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index c730fefdb..df469a5ae 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 |