mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 16:07:51 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			321 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			321 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from typing import Any
 | |
| 
 | |
| from dependency_injector import providers
 | |
| 
 | |
| 
 | |
| class Container: ...
 | |
| 
 | |
| 
 | |
| # Test 1: to check the return type
 | |
| provider1 = providers.Container(Container)
 | |
| var1: Container = provider1()
 | |
| 
 | |
| # Test 2: to check the getattr
 | |
| provider2 = providers.Container(Container)
 | |
| attr: providers.Provider[Any] = provider2.attr
 |