diff --git a/README.rst b/README.rst index f01cedad..eafb0e42 100644 --- a/README.rst +++ b/README.rst @@ -152,7 +152,7 @@ framework: api_client = providers.Singleton( ApiClient, api_key=config.api_key, - timeout=config.timeout, + timeout=config.timeout.as_int(), ) service = providers.Factory( diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index a119d160..566d0a30 100644 --- a/docs/main/changelog.rst +++ b/docs/main/changelog.rst @@ -7,6 +7,10 @@ that were made in every particular version. From version 0.7.6 *Dependency Injector* framework strictly follows `Semantic versioning`_ +3.32.1 +------ +- Update DI Demo 2 example and READ to make typed configuration option injection. + 3.32.0 ------ - Add a feature that helps to explicitly specify the type of the configuration option value diff --git a/examples/di_demo2/demo.py b/examples/di_demo2/demo.py index df99e433..c62c1804 100644 --- a/examples/di_demo2/demo.py +++ b/examples/di_demo2/demo.py @@ -21,7 +21,7 @@ class Container(containers.DeclarativeContainer): api_client = providers.Singleton( ApiClient, api_key=config.api_key, - timeout=config.timeout, + timeout=config.timeout.as_int(), ) service = providers.Factory( diff --git a/src/dependency_injector/__init__.py b/src/dependency_injector/__init__.py index 7cfd8009..89775142 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.0' +__version__ = '3.32.1' """Version number that follows semantic versioning. :type: str