Skip to content

Commit

Permalink
add returne type on function
Browse files Browse the repository at this point in the history
  • Loading branch information
Your_Name Your_Surname committed Sep 19, 2023
1 parent 3f66fd1 commit 6445f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6445f39

Please sign in to comment.