Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb232 committed Nov 11, 2024
1 parent f7fdea4 commit 5261779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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]

0 comments on commit 5261779

Please sign in to comment.