-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Extract cached
ForecastingHorizon
methods to functions and av…
…oid B019 error (#2364) Factors out `ForecastingHorizon.to_relative` and `ForecastingHorizon.to_absolute` methods that were `lru_cache`-d to cached loose functions `_to_relative` and `_to_absolute`, respectively, to allow caching without `flake8-bugbear` B019 related problems.
- Loading branch information
Stanislav Khrapov
committed
Apr 1, 2022
1 parent
aa994f1
commit 615e0c2
Showing
1 changed file
with
110 additions
and
66 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