mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
14 lines
333 B
Python
14 lines
333 B
Python
from typing import AsyncGenerator, Callable, Coroutine, Generator, 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],
|
|
],
|
|
]
|