mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-10-30 00:46:14 +08:00
Drop Python 3.9 support
This commit is contained in:
@ -1,15 +1,19 @@
|
||||
from collections.abc import AsyncGenerator, AsyncIterator, Coroutine, Generator
|
||||
from typing import Callable, TypeVar, Union
|
||||
from collections.abc import (
|
||||
AsyncGenerator,
|
||||
AsyncIterator,
|
||||
Callable,
|
||||
Coroutine,
|
||||
Generator,
|
||||
)
|
||||
from typing import TypeVar
|
||||
|
||||
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],
|
||||
],
|
||||
RETURN_TYPE
|
||||
| Coroutine[None, None, RETURN_TYPE]
|
||||
| AsyncGenerator[RETURN_TYPE, None]
|
||||
| Generator[RETURN_TYPE, None, None]
|
||||
| AsyncIterator[RETURN_TYPE],
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user