Skip to content

Commit

Permalink
fix: support for Python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
laszukdawid committed Aug 24, 2024
1 parent 5e16252 commit 9306532
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PyEMD/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from functools import cache
import sys
from typing import Optional

import numpy as np

if sys.version_info >= (3, 9):
from functools import cache
else:
from functools import lru_cache as cache


def get_timeline(range_max: int, dtype: Optional[np.dtype] = None) -> np.ndarray:
"""Returns timeline array for requirements.
Expand Down

0 comments on commit 9306532

Please sign in to comment.