🚨 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-10-05 17:17:55 +00:00
parent b2636f0c5f
commit a2882f3e2e
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,
)