diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index 566d0a30..7d6c7f9b 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -7,6 +7,11 @@ that were made in every particular version. From version 0.7.6 *Dependency Injector* framework strictly follows `Semantic versioning`_ +3.32.2 +------ +- Make a fix in the factory delegation example (thanks to + `Joël Bourgault `_ for finding and reporting the issue). + 3.32.1 ------ - Update DI Demo 2 example and READ to make typed configuration option injection. diff --git a/examples/providers/factory_delegation.py b/examples/providers/factory_delegation.py index f57d2dc9..0aee54d3 100644 --- a/examples/providers/factory_delegation.py +++ b/examples/providers/factory_delegation.py @@ -26,7 +26,7 @@ class User: # Defining User and Photo factories using DelegatedFactory provider: photos_factory = providers.DelegatedFactory(Photo) -users_factory = providers.DelegatedFactory( +users_factory = providers.Factory( User, photos_factory=photos_factory, ) diff --git a/src/dependency_injector/__init__.py b/src/dependency_injector/__init__.py index 89775142..b08f32e1 100644 --- a/src/dependency_injector/__init__.py +++ b/src/dependency_injector/__init__.py @@ -1,6 +1,6 @@ """Dependency injector top-level package.""" -__version__ = '3.32.1' +__version__ = '3.32.2' """Version number that follows semantic versioning. :type: str