Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leshchenko1979 committed May 10, 2022
1 parent 587615d commit 87054b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion perscache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"


Expand Down
3 changes: 1 addition & 2 deletions perscache/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
File renamed without changes.

0 comments on commit 87054b1

Please sign in to comment.