更改部分类型注解

This commit is contained in:
John Richard
2025-10-02 21:10:36 +08:00
parent 7923eafef3
commit 047105e5e8
6 changed files with 17 additions and 45 deletions

View File

@@ -21,10 +21,6 @@ class BasePlugin(PluginBase):
- Command组件处理命令请求
- 未来可扩展Scheduler、Listener等
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@abstractmethod
def get_plugin_components(
self,
@@ -42,7 +38,7 @@ class BasePlugin(PluginBase):
Returns:
List[tuple[ComponentInfo, Type]]: [(组件信息, 组件类), ...]
"""
raise NotImplementedError("Subclasses must implement this method")
...
def register_plugin(self) -> bool:
"""注册插件及其所有组件"""