修复项目主要错误
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""插件基础类"""
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Any, Optional
|
||||
|
||||
|
||||
class Plugin(ABC):
|
||||
"""插件基类"""
|
||||
|
||||
@abstractmethod
|
||||
def init(self, deps: Optional[dict] = None):
|
||||
"""初始化插件"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def start(self):
|
||||
"""启动插件"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def stop(self):
|
||||
"""停止插件"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user