Skip to content
Snippets Groups Projects
Commit 2dda1faa authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: remove import

parent d3c90911
No related branches found
No related tags found
2 merge requests!107ENH: add entity getters and cached functions,!100ENH: add entity getters and cached functions
Pipeline #35467 passed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment