mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-31 01:59:58 +00:00
🚧 add generator dependency support
This commit is contained in:
@ -40,6 +40,11 @@ class Driver(abc.ABC):
|
||||
:类型: ``Set[T_BotDisconnectionHook]``
|
||||
:说明: Bot 连接断开时执行的函数
|
||||
"""
|
||||
dependency_overrides: Dict[Callable[..., Any], Callable[..., Any]] = {}
|
||||
"""
|
||||
:类型: ``Dict[Callable[..., Any], Callable[..., Any]]``
|
||||
:说明: Depends 函数的替换表
|
||||
"""
|
||||
|
||||
def __init__(self, env: Env, config: Config):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user