mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-15 10:31:04 +00:00
令参数符合标准
This commit is contained in:
@ -33,8 +33,7 @@ def escape_tag(s: str) -> str:
|
||||
"""
|
||||
用于记录带颜色日志时转义 `<tag>` 类型特殊标签
|
||||
|
||||
:参数:
|
||||
|
||||
参数:
|
||||
s: 需要转义的字符串
|
||||
|
||||
:返回:
|
||||
@ -90,8 +89,7 @@ def run_sync(call: Callable[P, R]) -> Callable[P, Awaitable[R]]:
|
||||
"""
|
||||
一个用于包装 sync function 为 async function 的装饰器
|
||||
|
||||
:参数:
|
||||
|
||||
参数:
|
||||
call: 被装饰的同步函数
|
||||
|
||||
:返回:
|
||||
|
Reference in New Issue
Block a user