mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 01:47:36 +03:00 
			
		
		
		
	Update typing in test
This commit is contained in:
		
							parent
							
								
									d6b580fdf0
								
							
						
					
					
						commit
						b40c8f1076
					
				| 
						 | 
					@ -21,7 +21,7 @@ def container():
 | 
				
			||||||
def decorator1(func):
 | 
					def decorator1(func):
 | 
				
			||||||
    @functools.wraps(func)
 | 
					    @functools.wraps(func)
 | 
				
			||||||
    @inject
 | 
					    @inject
 | 
				
			||||||
    def wrapper(value1: str = Provide[Container.config.value1]):
 | 
					    def wrapper(value1: int = Provide[Container.config.value1]):
 | 
				
			||||||
        result = func()
 | 
					        result = func()
 | 
				
			||||||
        return result + value1
 | 
					        return result + value1
 | 
				
			||||||
    return wrapper
 | 
					    return wrapper
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,7 @@ def decorator1(func):
 | 
				
			||||||
def decorator2(func):
 | 
					def decorator2(func):
 | 
				
			||||||
    @functools.wraps(func)
 | 
					    @functools.wraps(func)
 | 
				
			||||||
    @inject
 | 
					    @inject
 | 
				
			||||||
    def wrapper(value2: str = Provide[Container.config.value2]):
 | 
					    def wrapper(value2: int = Provide[Container.config.value2]):
 | 
				
			||||||
        result = func()
 | 
					        result = func()
 | 
				
			||||||
        return result + value2
 | 
					        return result + value2
 | 
				
			||||||
    return wrapper
 | 
					    return wrapper
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user