From 2dda1faa3fd41ba5089e47fd9dee90bf5e2b14ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Tue, 11 Apr 2023 12:42:38 +0200 Subject: [PATCH] MAINT: remove import --- src/caosdb/cached.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/caosdb/cached.py b/src/caosdb/cached.py index fd9e3255..b2f7eef8 100644 --- a/src/caosdb/cached.py +++ b/src/caosdb/cached.py @@ -23,7 +23,6 @@ This module provides some cached versions of functions that retrieve Entities from a remote server. """ -import functools from typing import Union from functools import lru_cache from .utils import get_entity @@ -126,7 +125,7 @@ def cache_initialize(maxsize=DEFAULT_SIZE) -> None: The old cache is removed with all its content. """ global _cached_access - _cached_access = functools.lru_cache(maxsize=maxsize)(_cached_access.__wrapped__) + _cached_access = lru_cache(maxsize=maxsize)(_cached_access.__wrapped__) def fill_cache(items: dict, kind: AccessType = AccessType.EID, unique=True) -> None: -- GitLab