We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1de4c5d commit c84d578Copy full SHA for c84d578
1 file changed
taskiq_dependencies/graph.py
@@ -177,7 +177,13 @@ def _build_graph(self) -> None: # noqa: C901, WPS210
177
# and the overriden value will appear to be after
178
# the original `Depends` annotation.
179
for meta in reversed(param.annotation.__metadata__):
180
- if isinstance(meta, (Dependency, FastapiDepends)):
+ if isinstance(meta, Dependency):
181
+ default_value = meta
182
+ break
183
+ if FastapiDepends is not None and isinstance( # noqa: WPS337
184
+ meta,
185
+ FastapiDepends,
186
+ ):
187
default_value = meta
188
break
189
0 commit comments