diff --git a/perscache/cache.py b/perscache/cache.py index 432e3d6..6a766c7 100644 --- a/perscache/cache.py +++ b/perscache/cache.py @@ -125,7 +125,7 @@ def _get_key( return hash_it(inspect.getsource(fn), type(serializer).__name__, arg_dict) - def _get_filename(self, fn: callable, key: str, serializer: Serializer) -> str: + def _get_filename(self, fn: Callable, key: str, serializer: Serializer) -> str: return f"{fn.__name__}-{key}.{serializer.extension}" diff --git a/perscache/serializers.py b/perscache/serializers.py index 3167d06..34ced37 100644 --- a/perscache/serializers.py +++ b/perscache/serializers.py @@ -2,11 +2,10 @@ import json import pickle from abc import ABC, abstractmethod -from typing import Type import cloudpickle from beartype import beartype -from beartype.typing import Any, Callable, Optional +from beartype.typing import Any, Callable, Optional, Type class Serializer(ABC): diff --git a/tests/pytest.ini b/pytest.ini similarity index 100% rename from tests/pytest.ini rename to pytest.ini