-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reqs: Update cached_property to functools version #2359
Conversation
a12e411
to
165f2f4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2359 +/- ##
==========================================
+ Coverage 86.76% 86.80% +0.04%
==========================================
Files 233 233
Lines 43764 43755 -9
Branches 8079 8078 -1
==========================================
+ Hits 37973 37983 +10
+ Misses 5080 5063 -17
+ Partials 711 709 -2 ☔ View full report in Codecov by Sentry. |
devito/data/decomposition.py
Outdated
@@ -1,7 +1,7 @@ | |||
from collections.abc import Iterable | |||
|
|||
import numpy as np | |||
from cached_property import cached_property | |||
from functools import cached_property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now a system import so convention throughout is to group it with system import (first group with collection)
8dad89c
to
a8ab0a1
Compare
e80ec62
to
bf5bf11
Compare
cached_property
has been included infunctools
since Python 3.8. The originalcached_property
module hasn't had an update since. Since Python 3.7 is officially end-of-life, support can be dropped and we can move to usingfunctools.cached_property
throughout the codebase. This PR updates the requirements and all imports accordingly.