mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 02:50:48 +00:00
令参数列表符合 autodoc 格式
This commit is contained in:
@ -60,8 +60,8 @@ def Depends(
|
||||
|
||||
:参数:
|
||||
|
||||
* `dependency: Optional[Callable[..., Any]] = None`: 依赖函数。默认为参数的类型注释。
|
||||
* `use_cache: bool = True`: 是否使用缓存。默认为 `True`。
|
||||
dependency: 依赖函数。默认为参数的类型注释。
|
||||
use_cache: 是否使用缓存。默认为 `True`。
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
Reference in New Issue
Block a user