From 798b7a5735fb60d63fcb253f23263f2d95147177 Mon Sep 17 00:00:00 2001 From: Vasyl Smutok <23.smutok@gmail.com> Date: Tue, 19 Sep 2023 19:23:09 +0300 Subject: [PATCH] Add annotations to cache decorator --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 057166eb..68287892 100644 --- a/app/main.py +++ b/app/main.py @@ -1,3 +1,6 @@ -def cache(func): +from typing import Callable + + +def cache(func: Callable) -> Callable: # Write your code here pass