mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 16:07:51 +03:00 
			
		
		
		
	* Add test * Add fix * Add extra test * Remove package imports on discovery for Python versions < 3.6 * Move wiring samples to a different directory
		
			
				
	
	
		
			12 lines
		
	
	
		
			270 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			270 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import sys
 | |
| 
 | |
| if sys.version_info >= (3, 6):
 | |
|     from dependency_injector.wiring import Provide
 | |
| 
 | |
|     from ..container import Container
 | |
|     from ..service import Service
 | |
| 
 | |
| 
 | |
|     def test_package_function(service: Service = Provide[Container.service]):
 | |
|         return service
 |