Skip to content

Commit

Permalink
gived Any type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngayka committed Nov 30, 2024
1 parent 1b12b5e commit d64fc34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Callable
from typing import Callable, Any
from functools import wraps


def cache(func: Callable) -> Callable:
cache_storage = {}

@wraps(func)
def wrapper(*args, **kwargs):
def wrapper(*args, **kwargs) -> Any:
cache_key = (args, tuple(sorted(kwargs.items())))
if cache_key in cache_storage:
print("Getting from cache")
Expand Down

0 comments on commit d64fc34

Please sign in to comment.