diff options
| author | capellancitizen <thecapellancitizen@gmail.com> | 2025-03-09 21:21:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-09 21:21:48 -0400 |
| commit | 99509df8d8abf1e7b701a4a09cf170a362f6d878 (patch) | |
| tree | a461549502fa9f37dc287789b6c7db81dfcd5368 /lib/utils/cache.py | |
| parent | 0d2fc24f25f87562f0755b53dad6204efad1330d (diff) | |
Mypy type correctness (#3199)
Diffstat (limited to 'lib/utils/cache.py')
| -rw-r--r-- | lib/utils/cache.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/utils/cache.py b/lib/utils/cache.py index 18f993e9..cca6296a 100644 --- a/lib/utils/cache.py +++ b/lib/utils/cache.py @@ -8,16 +8,12 @@ import os import pickle import sqlite3 -import diskcache +import diskcache # type: ignore[import-untyped] from lib.utils.settings import global_settings from .paths import get_user_dir - -try: - from functools import lru_cache -except ImportError: - from backports.functools_lru_cache import lru_cache +from functools import lru_cache # simplify use of lru_cache decorator |
