From 5261779068eae0b3ef04668288510d89b89727de Mon Sep 17 00:00:00 2001 From: ComfortCityBud Date: Mon, 11 Nov 2024 20:14:06 +0200 Subject: [PATCH] Solution --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 8e6eaaee..9e5234bf 100644 --- a/app/main.py +++ b/app/main.py @@ -1,10 +1,10 @@ -from typing import Callable +from typing import Callable, Any def cache(func: Callable) -> Callable: cache_dict = {} - def wrapper(*args, **kwargs) -> None: + def wrapper(*args, **kwargs) -> Any: flag = True while flag: data_iterable = tuple( @@ -27,5 +27,5 @@ def long_time_func(a: int, b: int, c: int) -> int: # NOQA VNE001 @cache -def long_time_func_2(n_tuple: tuple, power: int) -> int: +def long_time_func_2(n_tuple: tuple, power: int) -> list: return [number ** power for number in n_tuple]