-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #649 from jorenham/main
prefer `functools.cached_property` for python >= 3.8
- Loading branch information
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
try: | ||
# Prefer system installed version if available | ||
from property_cached import cached_property | ||
except ImportError: | ||
from arch.vendor.property_cached import cached_property | ||
import sys | ||
|
||
if sys.version_info >= (3, 8): | ||
from functools import cached_property | ||
else: | ||
try: | ||
# Prefer system installed version if available | ||
from property_cached import cached_property | ||
except ImportError: | ||
from arch.vendor.property_cached import cached_property | ||
|
||
|
||
__all__ = ["cached_property"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ numpy>=1.17 | |
scipy>=1.3 | ||
pandas>=1.0 | ||
statsmodels>=0.11 | ||
property_cached>=1.6.4 | ||
|