mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 20:46:45 +00:00
📝 update api docs
This commit is contained in:
@ -36,7 +36,7 @@ Rule(async_function, run_sync(sync_function))
|
||||
```
|
||||
|
||||
|
||||
### `__init__(*checkers)`
|
||||
### `__init__(*checkers, dependency_overrides_provider=None)`
|
||||
|
||||
|
||||
* **参数**
|
||||
@ -83,6 +83,12 @@ Rule(async_function, run_sync(sync_function))
|
||||
* `state: T_State`: 当前 State
|
||||
|
||||
|
||||
* `stack: Optional[AsyncExitStack]`: 异步上下文栈
|
||||
|
||||
|
||||
* `dependency_cache: Optional[Dict[Callable[..., Any], Any]]`: 依赖缓存
|
||||
|
||||
|
||||
|
||||
* **返回**
|
||||
|
||||
|
Reference in New Issue
Block a user