Ruff Format
This commit is contained in:
@@ -10,11 +10,10 @@
|
||||
"""
|
||||
|
||||
import re
|
||||
from typing import Any, Awaitable, Callable, Dict, List, Optional, Pattern, Tuple, Union
|
||||
from typing import Any, Awaitable, Callable, Dict, Optional, Pattern, Tuple
|
||||
|
||||
from src.common.logger import get_logger
|
||||
from src.core.types import (
|
||||
ActionActivationType,
|
||||
ActionInfo,
|
||||
CommandInfo,
|
||||
ComponentInfo,
|
||||
@@ -130,9 +129,7 @@ class ComponentRegistry:
|
||||
logger.debug(f"注册 Command: {name}")
|
||||
return True
|
||||
|
||||
def find_command_by_text(
|
||||
self, text: str
|
||||
) -> Optional[Tuple[CommandExecutor, dict, CommandInfo]]:
|
||||
def find_command_by_text(self, text: str) -> Optional[Tuple[CommandExecutor, dict, CommandInfo]]:
|
||||
"""根据文本查找匹配的命令
|
||||
|
||||
Returns:
|
||||
|
||||
@@ -117,9 +117,7 @@ class EventBus:
|
||||
self._fire_and_forget(entry, event_type, current_message)
|
||||
|
||||
# 桥接到 IPC 插件运行时
|
||||
continue_flag, current_message = await self._bridge_to_ipc_runtime(
|
||||
event_type, continue_flag, current_message
|
||||
)
|
||||
continue_flag, current_message = await self._bridge_to_ipc_runtime(event_type, continue_flag, current_message)
|
||||
|
||||
return continue_flag, current_message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user