Skip to content

Commit

Permalink
Use lru_cache instead of cache for compatibility with older versions …
Browse files Browse the repository at this point in the history
…of Python.
  • Loading branch information
TkTech committed Mar 16, 2024
1 parent 518dd01 commit 0a28f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_benchmark.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from functools import cache
from functools import lru_cache
from pathlib import Path

import can_ada
import ada_url
import urllib.parse


@cache
@lru_cache
def data() -> list[str]:
current_file_dir = Path(__file__).parent
with open(current_file_dir / "data" / "top100.txt", "r") as f:
Expand Down

0 comments on commit 0a28f96

Please sign in to comment.