Skip to content

Commit

Permalink
Merge pull request sphinx-doc#8527 from tk0miya/8111_pretty_change
Browse files Browse the repository at this point in the history
refactor: pretty change for isproperty()
  • Loading branch information
tk0miya authored Dec 13, 2020
2 parents 399210c + e15f7a1 commit 8ed1e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/util/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ed1e70

Please sign in to comment.