mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
Improve dependencies typing
This commit is contained in:
7
fastapi_users/types.py
Normal file
7
fastapi_users/types.py
Normal file
@ -0,0 +1,7 @@
|
||||
from typing import Callable, Coroutine, TypeVar, Union
|
||||
|
||||
RETURN_TYPE = TypeVar("RETURN_TYPE")
|
||||
|
||||
DependencyCallable = Callable[
|
||||
..., Union[RETURN_TYPE, Coroutine[None, None, RETURN_TYPE]]
|
||||
]
|
Reference in New Issue
Block a user