From 52483b5d44c197cd9a38e1fa369d04e900cefab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E6=A2=93=E6=9F=92?= <1787882683@qq.com> Date: Fri, 18 Apr 2025 10:45:19 +0800 Subject: [PATCH] fix: Ruff --- src/plugins/chat/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/chat/utils.py b/src/plugins/chat/utils.py index c5c20b333..1a8e16073 100644 --- a/src/plugins/chat/utils.py +++ b/src/plugins/chat/utils.py @@ -815,7 +815,7 @@ def parse_text_timestamps(text: str, mode: str = "normal") -> str: # 从后向前替换,避免位置改变 converted_timestamps.reverse() - for ts, match, readable_time in converted_timestamps: + for _ts, match, readable_time in converted_timestamps: pattern_instance = re.escape(match.group(0)) if readable_time in readable_time_used: # 如果相同格式的时间已存在,替换为空字符串