From 9d85b63c3bd3999bf805ba7642cad0ce577bbf34 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 26 Aug 2020 16:22:54 -0400 Subject: [PATCH 1/2] Make a fix in the providers delegation example --- examples/providers/factory_delegation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ) From cc7ade89d76ae30cecaf22a743e19a22d3ed177a Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Wed, 26 Aug 2020 16:24:59 -0400 Subject: [PATCH 2/2] Bump version to 3.32.2 --- docs/main/changelog.rst | 5 +++++ src/dependency_injector/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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/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