fix: Ruff

This commit is contained in:
墨梓柒
2025-04-17 09:39:53 +08:00
parent 53c8548819
commit e5e5b5ca09
3 changed files with 4 additions and 4 deletions

View File

@@ -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 match, readable_time in converted_timestamps:
pattern_instance = re.escape(match.group(0))
if readable_time in readable_time_used:
# 如果相同格式的时间已存在,替换为空字符串

View File

@@ -14,9 +14,9 @@ import time
from loguru import logger
from ..models.utils_model import LLM_request
from ...config.config import global_config
from ..chat.chat_stream import ChatStream
# from ..chat.chat_stream import ChatStream
from ..chat.utils import get_recent_group_detailed_plain_text
from .willing_manager import BaseWillingManager
# from .willing_manager import BaseWillingManager
from .mode_mxp import MxpWillingManager
import re
from functools import wraps