mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Merge branch 'release/4.5.2' into master
This commit is contained in:
commit
c4dd923f37
|
@ -7,6 +7,12 @@ that were made in every particular version.
|
||||||
From version 0.7.6 *Dependency Injector* framework strictly
|
From version 0.7.6 *Dependency Injector* framework strictly
|
||||||
follows `Semantic versioning`_
|
follows `Semantic versioning`_
|
||||||
|
|
||||||
|
4.5.2
|
||||||
|
-----
|
||||||
|
- Fix a bug in wiring ``@inject`` with not properly working ``FastAPI.Depends`` directive.
|
||||||
|
See issue `#330 <https://github.com/ets-labs/python-dependency-injector/issues/330>`_ for details.
|
||||||
|
Thanks to `Lojka-oops <https://github.com/Lojka-oops>`_ for reporting the issue.
|
||||||
|
|
||||||
4.5.1
|
4.5.1
|
||||||
-----
|
-----
|
||||||
- Fix flake8 issue in ``Commands and Handlers`` example.
|
- Fix flake8 issue in ``Commands and Handlers`` example.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Top-level package."""
|
"""Top-level package."""
|
||||||
|
|
||||||
__version__ = '4.5.1'
|
__version__ = '4.5.2'
|
||||||
"""Version number.
|
"""Version number.
|
||||||
|
|
||||||
:type: str
|
:type: str
|
||||||
|
|
|
@ -336,6 +336,9 @@ def _fetch_reference_injections(
|
||||||
if _is_fastapi_depends(marker):
|
if _is_fastapi_depends(marker):
|
||||||
marker = marker.dependency
|
marker = marker.dependency
|
||||||
|
|
||||||
|
if not isinstance(marker, providers.Provider):
|
||||||
|
continue
|
||||||
|
|
||||||
if isinstance(marker, Closing):
|
if isinstance(marker, Closing):
|
||||||
marker = marker.provider
|
marker = marker.provider
|
||||||
closing[parameter_name] = marker
|
closing[parameter_name] = marker
|
||||||
|
|
Loading…
Reference in New Issue
Block a user