mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 16:07:51 +03:00 
			
		
		
		
	Add simplified syntax of kwarg injections for `Callable` provider
				
					
				
			This commit is contained in:
		
							parent
							
								
									bb33c925de
								
							
						
					
					
						commit
						babb49448a
					
				|  | @ -13,6 +13,8 @@ Development version | ||||||
| 
 | 
 | ||||||
| - Add simplified syntax of kwarg injections for ``Factory`` and ``Singleton``  | - Add simplified syntax of kwarg injections for ``Factory`` and ``Singleton``  | ||||||
|   providers: ``Factory(SomeClass, dependency1=injectable_provider_or_value)``. |   providers: ``Factory(SomeClass, dependency1=injectable_provider_or_value)``. | ||||||
|  | - Add simplified syntax of kwarg injections for ``Callable`` provider: | ||||||
|  |   ``Callable(some_callable, dependency1=injectable_provider_or_value)`` | ||||||
| - Add simplified syntax of kwarg injections for ``@inject`` decorator: | - Add simplified syntax of kwarg injections for ``@inject`` decorator: | ||||||
|   ``@inject(dependency1=injectable_provider_or_value)``. |   ``@inject(dependency1=injectable_provider_or_value)``. | ||||||
| - Optimize ``@inject`` decorations when they were made several times for the  | - Optimize ``@inject`` decorations when they were made several times for the  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user