From 6445f39ed07cb1aa43bd38683043fde84a44d185 Mon Sep 17 00:00:00 2001 From: Your_Name Your_Surname Date: Tue, 19 Sep 2023 21:41:31 +0300 Subject: [PATCH] add returne type on function --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index e05c13ca..52cfd21b 100644 --- a/app/main.py +++ b/app/main.py @@ -6,7 +6,7 @@ def cache(func: Callable) -> Callable: result: dict = {} @wraps(func) - def inner(*args) -> list: + def inner(*args) -> int: if args not in result.keys(): result[args] = func(*args) print("Calculating new result")