From afa1a6db575d66056152804af63e95740536b7dd Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 10 Jul 2024 01:12:56 +0200 Subject: [PATCH] #98 Removed comments. --- fast_depends/core/build.py | 1 - fast_depends/core/model.py | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/fast_depends/core/build.py b/fast_depends/core/build.py index c751385..3dcd6c5 100644 --- a/fast_depends/core/build.py +++ b/fast_depends/core/build.py @@ -147,7 +147,6 @@ def build_call_model( if dep.cast is True: class_fields[param_name] = (annotation, ...) keyword_args.append(param_name) - # Todo: maybe here positional_args.append(param_name) elif custom: diff --git a/fast_depends/core/model.py b/fast_depends/core/model.py index b120c6c..dcadb1f 100644 --- a/fast_depends/core/model.py +++ b/fast_depends/core/model.py @@ -355,8 +355,6 @@ def solve( # Heat cache and solve extra dependencies for dep, _ in self.sorted_dependencies: - # Todo fix is here. - dep.solve( *args, stack=stack, @@ -366,7 +364,6 @@ def solve( **kwargs, ) - # Always get from cache for dep in self.extra_dependencies: dep.solve( *args, @@ -377,7 +374,7 @@ def solve( **kwargs, ) - for dep_arg, dep in self.dependencies.items(): # Todo: probably here + for dep_arg, dep in self.dependencies.items(): if dep_arg not in kwargs: kwargs[dep_arg] = dep.solve( stack=stack,