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