mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 11:00:54 +00:00
调整缩进
This commit is contained in:
@ -34,7 +34,7 @@ def escape_tag(s: str) -> str:
|
||||
用于记录带颜色日志时转义 `<tag>` 类型特殊标签
|
||||
|
||||
参数:
|
||||
s: 需要转义的字符串
|
||||
s: 需要转义的字符串
|
||||
"""
|
||||
return re.sub(r"</?((?:[fb]g\s)?[^<>\s]*)>", r"\\\g<0>", s)
|
||||
|
||||
@ -86,7 +86,7 @@ def run_sync(call: Callable[P, R]) -> Callable[P, Awaitable[R]]:
|
||||
一个用于包装 sync function 为 async function 的装饰器
|
||||
|
||||
参数:
|
||||
call: 被装饰的同步函数
|
||||
call: 被装饰的同步函数
|
||||
"""
|
||||
|
||||
@wraps(call)
|
||||
|
Reference in New Issue
Block a user