-
-
Save maliciousgroup/e5dfecdf06b9f601f617d3c61c884862 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from src.core.registry.ModuleRegistry import ModuleRegistry | |
from src.core.base.abstract.AbstractModule import AbstractModule | |
class BaseModule(AbstractModule): | |
def __init_subclass__(cls, **kwargs): | |
try: | |
assert isinstance(cls, type(BaseModule)) | |
ModuleRegistry().register_module(cls) | |
super().__init_subclass__(**kwargs) | |
except AssertionError: | |
pass | |
async def module_shell(self) -> None: | |
pass | |
async def execute(self) -> None: | |
pass | |
async def main(self) -> None: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment