diff --git a/mure/cache.py b/mure/cache.py index b30e552..23f1aae 100644 --- a/mure/cache.py +++ b/mure/cache.py @@ -113,7 +113,7 @@ def __init__(self, path: Path = Path("mure-cache.shelve")): if self.path.exists(): LOGGER.warning(f"Cache ({self.path}) already exists") - self._cache = shelve.open(str(self.path)) + self._cache = shelve.open(str(self.path)) # noqa SIM115 def __del__(self): """Close the cache.""" diff --git a/mure/core.py b/mure/core.py index 9efa498..203cbe8 100644 --- a/mure/core.py +++ b/mure/core.py @@ -1,4 +1,4 @@ -from typing import Generator +from collections.abc import Generator from mure.cache import Cache from mure.iterator import ResponseIterator