From b01ee7709cc294dc201f4942fee92761344735ab Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Mon, 26 Oct 2020 13:39:13 -0400 Subject: [PATCH] Bump version to 4.1.1 --- docs/main/changelog.rst | 4 ++++ docs/providers/resource.rst | 2 +- examples/providers/resource.py | 4 ++-- src/dependency_injector/__init__.py | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/main/changelog.rst b/docs/main/changelog.rst index 3f99c1e8..593ff7f1 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`_ +4.1.1 +----- +- Fix a few typos in ``Resource`` provider docs. + 4.1.0 ----- - Add ``Resource`` provider. diff --git a/docs/providers/resource.rst b/docs/providers/resource.rst index a6514f8e..31bf3d8c 100644 --- a/docs/providers/resource.rst +++ b/docs/providers/resource.rst @@ -31,7 +31,7 @@ You can do injections and use provided instance the same way like you do with an config = providers.Configuration() thread_pool = providers.Resource( - init_threat_pool, + init_thread_pool, max_workers=config.max_workers, ) diff --git a/examples/providers/resource.py b/examples/providers/resource.py index 46744554..41daa041 100644 --- a/examples/providers/resource.py +++ b/examples/providers/resource.py @@ -7,7 +7,7 @@ from concurrent.futures import ThreadPoolExecutor from dependency_injector import containers, providers -def init_threat_pool(max_workers: int): +def init_thread_pool(max_workers: int): thread_pool = ThreadPoolExecutor(max_workers=max_workers) yield thread_pool thread_pool.shutdown(wait=True) @@ -18,7 +18,7 @@ class Container(containers.DeclarativeContainer): config = providers.Configuration() thread_pool = providers.Resource( - init_threat_pool, + init_thread_pool, max_workers=config.max_workers, ) diff --git a/src/dependency_injector/__init__.py b/src/dependency_injector/__init__.py index 2b31a69a..beb940ca 100644 --- a/src/dependency_injector/__init__.py +++ b/src/dependency_injector/__init__.py @@ -1,6 +1,6 @@ """Top-level package.""" -__version__ = '4.1.0' +__version__ = '4.1.1' """Version number. :type: str