Improved dynamic modules support

This commit is contained in:
2021-11-15 21:52:28 +01:00
parent 4763c41b10
commit f2ee3d64f6
7 changed files with 40 additions and 21 deletions

View File

@@ -1,7 +1,13 @@
from abc import ABC, abstractmethod
from cpl_query.extension import List
from modules_core.events_enum import EventsEnum
class ModuleABC(ABC):
@abstractmethod
def __init__(self): pass
# @property
# @abstractmethod
# def events(self) -> List[EventsEnum]: pass

View File

@@ -8,7 +8,4 @@ class ModuleServiceABC(ABC):
def __init__(self): pass
@abstractmethod
def register(self): pass
@abstractmethod
def start_modules(self): pass
async def start_modules(self): pass