Skip to content

Commit

Permalink
Fixed type annotation [int -> Any]
Browse files Browse the repository at this point in the history
  • Loading branch information
petrykivd authored Oct 2, 2023
1 parent 11daf20 commit 20e527b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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) -> int:
def wrapper(*args) -> Any:
if args in cache_dict:
print("Getting from cache")
else:
Expand Down

0 comments on commit 20e527b

Please sign in to comment.