Bump version to 4.1.1

This commit is contained in:
Roman Mogylatov 2020-10-26 13:39:13 -04:00
parent 90af46da98
commit b01ee7709c
4 changed files with 8 additions and 4 deletions

View File

@ -7,6 +7,10 @@ that were made in every particular version.
From version 0.7.6 *Dependency Injector* framework strictly From version 0.7.6 *Dependency Injector* framework strictly
follows `Semantic versioning`_ follows `Semantic versioning`_
4.1.1
-----
- Fix a few typos in ``Resource`` provider docs.
4.1.0 4.1.0
----- -----
- Add ``Resource`` provider. - Add ``Resource`` provider.

View File

@ -31,7 +31,7 @@ You can do injections and use provided instance the same way like you do with an
config = providers.Configuration() config = providers.Configuration()
thread_pool = providers.Resource( thread_pool = providers.Resource(
init_threat_pool, init_thread_pool,
max_workers=config.max_workers, max_workers=config.max_workers,
) )

View File

@ -7,7 +7,7 @@ from concurrent.futures import ThreadPoolExecutor
from dependency_injector import containers, providers 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) thread_pool = ThreadPoolExecutor(max_workers=max_workers)
yield thread_pool yield thread_pool
thread_pool.shutdown(wait=True) thread_pool.shutdown(wait=True)
@ -18,7 +18,7 @@ class Container(containers.DeclarativeContainer):
config = providers.Configuration() config = providers.Configuration()
thread_pool = providers.Resource( thread_pool = providers.Resource(
init_threat_pool, init_thread_pool,
max_workers=config.max_workers, max_workers=config.max_workers,
) )

View File

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