Skip to content

Commit 24626e0

Browse files
committed
Merge branch 'release/1.4.2'
2 parents 5e06dce + 0c9b8fe commit 24626e0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "taskiq-dependencies"
3-
version = "1.4.1"
3+
version = "1.4.2"
44
description = "FastAPI like dependency injection implementation"
55
authors = ["Pavel Kirilin <win10@list.ru>"]
66
readme = "README.md"

taskiq_dependencies/graph.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,13 @@ def _build_graph(self) -> None: # noqa: C901, WPS210
177177
# and the overriden value will appear to be after
178178
# the original `Depends` annotation.
179179
for meta in reversed(param.annotation.__metadata__):
180-
if isinstance(meta, (Dependency, FastapiDepends)):
180+
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+
):
181187
default_value = meta
182188
break
183189

0 commit comments

Comments
 (0)