mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 01:47:36 +03:00 
			
		
		
		
	Finish Singleton refactoring to use async mode api
This commit is contained in:
		
							parent
							
								
									3da1698f95
								
							
						
					
					
						commit
						2c911ff1f2
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
				
			
			@ -143,7 +143,6 @@ cdef class FactoryAggregate(Provider):
 | 
			
		|||
cdef class BaseSingleton(Provider):
 | 
			
		||||
    cdef Factory __instantiator
 | 
			
		||||
    cdef object __storage
 | 
			
		||||
    cdef bint __async
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
cdef class Singleton(BaseSingleton):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2029,7 +2029,6 @@ cdef class BaseSingleton(Provider):
 | 
			
		|||
                self.__class__, self.__class__.provided_type))
 | 
			
		||||
 | 
			
		||||
        self.__instantiator = Factory(provides, *args, **kwargs)
 | 
			
		||||
        self.__async = False
 | 
			
		||||
 | 
			
		||||
        super(BaseSingleton, self).__init__()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user