Skip to content

Commit

Permalink
Check immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
RadeonT800 committed Oct 31, 2024
1 parent 359c6cd commit 1ea88dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ def wrapper(*args, **kwargs) -> Any:
for value in args:
if isinstance(value, (list, set, dict)):
return None
for value in kwargs.values():
if isinstance(value, (list, set, dict)):
return None
for args_save, kwargs_save, result_save in calculated_data:
if args_save == args and kwargs_save == kwargs:
print("Getting from cache")
Expand Down

0 comments on commit 1ea88dd

Please sign in to comment.