mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
8 lines
326 B
Python
Executable File
8 lines
326 B
Python
Executable File
from typing import Any, Callable, Coroutine, TypeAlias, TypeVar
|
|
|
|
SYNC_FUNCTION_CALL_FUNC: TypeAlias = Callable[..., str]
|
|
ASYNC_FUNCTION_CALL_FUNC: TypeAlias = Callable[..., Coroutine[str, Any, str]]
|
|
FUNCTION_CALL_FUNC: TypeAlias = SYNC_FUNCTION_CALL_FUNC | ASYNC_FUNCTION_CALL_FUNC
|
|
|
|
F = TypeVar("F", bound=FUNCTION_CALL_FUNC)
|