From 24b2665bf4ee2ab1666cce67d1a710be407dcba1 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 14 Jul 2024 01:01:28 +0200 Subject: [PATCH] #98 removed redundant comments. --- fast_depends/core/model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fast_depends/core/model.py b/fast_depends/core/model.py index c2bd22b..db5db4f 100644 --- a/fast_depends/core/model.py +++ b/fast_depends/core/model.py @@ -233,7 +233,7 @@ def _solve( else: call = self.call - # check if the return value is in the cache + if self.use_cache and call in cache_dependencies: return cache_dependencies[call] @@ -393,7 +393,6 @@ def solve( else: kwargs = custom.use(**kwargs) - # here are prepared args and kwargs for the function call, including params from the call final_args, final_kwargs, call = cast_gen.send(kwargs) if self.is_generator and nested: