devitocodes / devito

DSL and compiler framework for automated finite-differences and stencil computation
http://www.devitoproject.org
MIT License
536 stars 221 forks source link

reqs: Update cached_property to functools version #2359

Closed EdCaunt closed 1 month ago

EdCaunt commented 2 months ago

cached_property has been included in functools since Python 3.8. The original cached_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 using functools.cached_property throughout the codebase. This PR updates the requirements and all imports accordingly.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 98.27586% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 86.80%. Comparing base (64b5ebd) to head (c3d8356).

Files Patch % Lines
devito/types/dense.py 90.90% 1 Missing :warning:
Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.