Ruff Format

This commit is contained in:
DrSmoothl
2026-03-13 11:45:26 +08:00
parent 2a510312bc
commit a576313b22
70 changed files with 956 additions and 731 deletions

View File

@@ -25,4 +25,4 @@
# available_actions: Optional[Dict[str, "ActionInfo"]] = None
# loop_start_time: Optional[float] = None
# action_reasoning: Optional[str] = None
# TODO: 重构
# TODO: 重构

View File

@@ -20,4 +20,4 @@
# timing: Optional[Dict[str, Any]] = None
# processed_output: Optional[List[str]] = None
# timing_logs: Optional[List[str]] = None
# TODO: 重构
# TODO: 重构

View File

@@ -13,8 +13,10 @@ from src.common.logger import get_logger
logger = get_logger("base_message_component_model")
class UnknownUser(str): ...
class BaseMessageComponentModel(ABC):
@property
@abstractmethod

View File

@@ -107,7 +107,7 @@ class UniversalMessageSender:
logger.info(f"已将消息 '{message_preview}' 发往平台'{message.platform}'")
return True
except Exception as legacy_e:
except Exception:
# # Legacy API 抛出异常,尝试 Fallback
# return await self._send_with_fallback(
# message, message_preview, platform, show_log, legacy_exception=legacy_e

View File

@@ -76,4 +76,4 @@ def assert_port_available(
port=port,
config_hint=config_hint,
)
raise OSError(build_port_conflict_message(service_name=service_name, host=host, port=port))
raise OSError(build_port_conflict_message(service_name=service_name, host=host, port=port))