mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 09:57:37 +03:00 
			
		
		
		
	Bump version to 4.1.1
This commit is contained in:
		
							parent
							
								
									90af46da98
								
							
						
					
					
						commit
						b01ee7709c
					
				| 
						 | 
				
			
			@ -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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
       )
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
"""Top-level package."""
 | 
			
		||||
 | 
			
		||||
__version__ = '4.1.0'
 | 
			
		||||
__version__ = '4.1.1'
 | 
			
		||||
"""Version number.
 | 
			
		||||
 | 
			
		||||
:type: str
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user