Skip to content

Commit

Permalink
fix anotation
Browse files Browse the repository at this point in the history
  • Loading branch information
IrynaBrenko committed Oct 21, 2024
1 parent fb0b62d commit 18f8355
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

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

@wraps(func)
def inner(*args: Hashable, **kwargs: Hashable) -> Any:

cache_key = (args, tuple(kwargs.items()))
if cache_key in cache_dict:
print("Getting from cache")
Expand Down

0 comments on commit 18f8355

Please sign in to comment.