Skip to content

Commit

Permalink
'Solution'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dizatvarska committed Dec 1, 2024
1 parent b7a97c4 commit 48c0b23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

def cache(func: Callable) -> Any:
results = {}
wraps(func)

@wraps(func)
def wrapper(*args, **kwargs) -> Any:
key = tuple(args) + tuple(*kwargs.items())
if key in results:
Expand Down

0 comments on commit 48c0b23

Please sign in to comment.