Skip to content

Commit

Permalink
Lancetnik#98 Removed comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Jul 9, 2024
1 parent c68c08c commit afa1a6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion fast_depends/core/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions fast_depends/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -366,7 +364,6 @@ def solve(
**kwargs,
)

# Always get from cache
for dep in self.extra_dependencies:
dep.solve(
*args,
Expand All @@ -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,
Expand Down

0 comments on commit afa1a6d

Please sign in to comment.