🚨 auto fix by pre-commit hooks
Ruff Lint / Ruff Lint (push) Canceled after 0s
Sequential Lint and Type Check / ruff-call (push) Canceled after 0s
Sequential Lint and Type Check / pyright-call (push) Canceled after 0s

This commit is contained in:
pre-commit-ci[bot]
2026-09-07 17:04:13 +00:00
parent 6ba511f4d6
commit 881ec1819e
8 changed files with 22 additions and 24 deletions
@@ -426,8 +426,9 @@ async def handle_delete(names: Match[list[str]]):
async def handle_clear():
confirm = await prompt_until(
"【警告】此操作将删除所有群组标签,是否继续?\n请输入 `是` 或 `确定` 确认操作",
lambda msg: msg.extract_plain_text().lower()
in ["是", "确定", "yes", "confirm"],
lambda msg: (
msg.extract_plain_text().lower() in ["是", "确定", "yes", "confirm"]
),
timeout=30,
retry=1,
)