mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 02:55:18 +08:00
Reformat
This commit is contained in:
parent
4d1d9c50f3
commit
9a818f781b
@ -81,6 +81,7 @@ def render_expression(expr: Expression_T, *args,
|
||||
if escape_args:
|
||||
return expr.format(
|
||||
*[escape(s) if isinstance(s, str) else s for s in args],
|
||||
**{k: escape(v) if isinstance(v, str) else v for k, v in kwargs.items()}
|
||||
**{k: escape(v) if isinstance(v, str) else v
|
||||
for k, v in kwargs.items()}
|
||||
)
|
||||
return expr.format(*args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user