From 48c0b23ae9ae96abb4a0a2eb261845c23f6b4868 Mon Sep 17 00:00:00 2001 From: Diana Zatvarska Date: Sun, 1 Dec 2024 14:40:46 -0800 Subject: [PATCH] 'Solution' --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 9f7f59e1..97cbc7a6 100644 --- a/app/main.py +++ b/app/main.py @@ -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: