mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 01:47:36 +03:00 
			
		
		
		
	Add .provided attribute to the Dependency provider
This commit is contained in:
		
							parent
							
								
									dd128b0b0b
								
							
						
					
					
						commit
						0509af8061
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
				
			
			@ -484,6 +484,11 @@ cdef class Dependency(Provider):
 | 
			
		|||
        """
 | 
			
		||||
        return self.__str__()
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def provided(self):
 | 
			
		||||
        """Return :py:class:`ProvidedInstance` provider."""
 | 
			
		||||
        return ProvidedInstance(self)
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def instance_of(self):
 | 
			
		||||
        """Return class of required dependency."""
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user