Skip to content

Commit

Permalink
added support for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai committed Sep 25, 2023
1 parent 2a9edeb commit 88d1edd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/laptrack/metric_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
"""Utilities for metric calculation."""
from functools import cache
try:
from functools import cache
except ImportError: # for 3.8
from functools import lru_cache, partial

cache = partial(lru_cache, maxsize=None)
from typing import List
from typing import Tuple
from typing import Union
Expand Down

0 comments on commit 88d1edd

Please sign in to comment.