Merge branch 'release/4.5.2' into master

This commit is contained in:
Roman Mogylatov 2020-12-04 20:19:12 -05:00
commit c4dd923f37
3 changed files with 10 additions and 1 deletions

View File

@ -7,6 +7,12 @@ that were made in every particular version.
From version 0.7.6 *Dependency Injector* framework strictly
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
-----
- Fix flake8 issue in ``Commands and Handlers`` example.

View File

@ -1,6 +1,6 @@
"""Top-level package."""
__version__ = '4.5.1'
__version__ = '4.5.2'
"""Version number.
:type: str

View File

@ -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