Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Abstract Command
import abc
class AbstractCommand(metaclass=abc.ABCMeta):
@abc.abstractmethod
async def execute(self) -> None:
"""
Abstract Coroutine that executes the Command logic
:return: None
"""
@abc.abstractmethod
async def main(self) -> None:
"""
Abstract Coroutine that starts the Command logic chain
:return: None
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment