From eeabdb982959b32f60ac5227a812faa2989eb327 Mon Sep 17 00:00:00 2001 From: yzy123908944141 <255488545@qq.com> Date: Wed, 10 Jun 2026 16:47:22 +0800 Subject: [PATCH] style: apply pyupgrade updates (#8684) --- astrbot/core/computer/booters/shipyard_search_file_util.py | 2 +- astrbot/core/pipeline/stage.py | 2 +- astrbot/utils/__init__.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/astrbot/core/computer/booters/shipyard_search_file_util.py b/astrbot/core/computer/booters/shipyard_search_file_util.py index 1227244de..cdd41de82 100644 --- a/astrbot/core/computer/booters/shipyard_search_file_util.py +++ b/astrbot/core/computer/booters/shipyard_search_file_util.py @@ -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( diff --git a/astrbot/core/pipeline/stage.py b/astrbot/core/pipeline/stage.py index 74aca4ef1..380c072b9 100644 --- a/astrbot/core/pipeline/stage.py +++ b/astrbot/core/pipeline/stage.py @@ -33,7 +33,7 @@ class Stage(abc.ABC): async def process( self, event: AstrMessageEvent, - ) -> None | AsyncGenerator[None, None]: + ) -> None | AsyncGenerator[None]: """处理事件 Args: diff --git a/astrbot/utils/__init__.py b/astrbot/utils/__init__.py index 8b1378917..e69de29bb 100644 --- a/astrbot/utils/__init__.py +++ b/astrbot/utils/__init__.py @@ -1 +0,0 @@ -