mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
Fix issue 330: FastAPI Depends directive does not work after patching with @inject
This commit is contained in:
parent
5c4c84b34e
commit
afa39b148e
|
@ -336,6 +336,9 @@ def _fetch_reference_injections(
|
|||
if _is_fastapi_depends(marker):
|
||||
marker = marker.dependency
|
||||
|
||||
if not isinstance(marker, providers.Provider):
|
||||
continue
|
||||
|
||||
if isinstance(marker, Closing):
|
||||
marker = marker.provider
|
||||
closing[parameter_name] = marker
|
||||
|
|
Loading…
Reference in New Issue
Block a user