Skip to content

Commit 6b3bb9a

Browse files
committed
Fallback to lru_cache in python 3.8
1 parent 50b1308 commit 6b3bb9a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

python/lib/sift_py/rule/service.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
from __future__ import annotations
22

33
from dataclasses import dataclass
4-
from functools import cache
4+
5+
try:
6+
from functools import cache
7+
except ImportError:
8+
from functools import lru_cache as cache
9+
510
from pathlib import Path
611
from typing import Any, Dict, List, Optional, Tuple, Union, cast
712

0 commit comments

Comments
 (0)