mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
style: apply pyupgrade updates (#8684)
This commit is contained in:
@@ -74,7 +74,7 @@ def _build_grep_command(
|
||||
|
||||
|
||||
def _quote_command(command: list[str]) -> str:
|
||||
return " ".join(shlex.quote(part) for part in command)
|
||||
return shlex.join(command)
|
||||
|
||||
|
||||
def build_search_command(
|
||||
|
||||
@@ -33,7 +33,7 @@ class Stage(abc.ABC):
|
||||
async def process(
|
||||
self,
|
||||
event: AstrMessageEvent,
|
||||
) -> None | AsyncGenerator[None, None]:
|
||||
) -> None | AsyncGenerator[None]:
|
||||
"""处理事件
|
||||
|
||||
Args:
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user