mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-10-31 01:17:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			395 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			395 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from collections.abc import (
 | |
|     AsyncGenerator,
 | |
|     AsyncIterator,
 | |
|     Callable,
 | |
|     Coroutine,
 | |
|     Generator,
 | |
| )
 | |
| from typing import TypeVar
 | |
| 
 | |
| RETURN_TYPE = TypeVar("RETURN_TYPE")
 | |
| 
 | |
| DependencyCallable = Callable[
 | |
|     ...,
 | |
|     RETURN_TYPE
 | |
|     | Coroutine[None, None, RETURN_TYPE]
 | |
|     | AsyncGenerator[RETURN_TYPE, None]
 | |
|     | Generator[RETURN_TYPE, None, None]
 | |
|     | AsyncIterator[RETURN_TYPE],
 | |
| ]
 | 
