令参数列表符合 autodoc 格式

This commit is contained in:
hemengyang
2022-01-12 18:25:25 +08:00
parent 4ba1a09fb7
commit a5f32febbd
19 changed files with 361 additions and 361 deletions

View File

@ -43,7 +43,7 @@ class BlockDriver(Driver):
:参数:
* `func: Callable[[], Awaitable[None]]`
func
"""
self.startup_funcs.add(func)
return func
@ -55,7 +55,7 @@ class BlockDriver(Driver):
:参数:
* `func: Callable[[], Awaitable[None]]`
func
"""
self.shutdown_funcs.add(func)
return func