Skip to content

Commit

Permalink
change incorrect type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
dev0Guy committed Dec 29, 2024
1 parent 68df4c5 commit 1ca8901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nest/core/decorators/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ast
import inspect
from typing import Callable, List, Dict, Type
from typing import Callable, List, Dict, Type, Iterable

import click

Expand Down Expand Up @@ -91,7 +91,7 @@ def parse_dependencies(cls: Type, check_inherited: bool = False) -> Dict[str, Ty
if check_inherited
else _check_injectable_not_inherited
)
params: List[inspect.Parameter] = filter(filter_by, signature.parameters.values())
params: Iterable[inspect.Parameter] = filter(filter_by, signature.parameters.values())
return {param.name: param.annotation for param in params}


Expand Down

0 comments on commit 1ca8901

Please sign in to comment.