Skip to content

Commit eeabdb9

Browse files
style: apply pyupgrade updates (#8684)
1 parent 0b22349 commit eeabdb9

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

astrbot/core/computer/booters/shipyard_search_file_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _build_grep_command(
7474

7575

7676
def _quote_command(command: list[str]) -> str:
77-
return " ".join(shlex.quote(part) for part in command)
77+
return shlex.join(command)
7878

7979

8080
def build_search_command(

astrbot/core/pipeline/stage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def initialize(self, ctx: PipelineContext) -> None:
3333
async def process(
3434
self,
3535
event: AstrMessageEvent,
36-
) -> None | AsyncGenerator[None, None]:
36+
) -> None | AsyncGenerator[None]:
3737
"""处理事件
3838
3939
Args:

astrbot/utils/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)