Skip to content

Instantly share code, notes, and snippets.

@maliciousgroup
Created April 7, 2021 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maliciousgroup/3ac12c873c392191ad5e22cad8592482 to your computer and use it in GitHub Desktop.
Save maliciousgroup/3ac12c873c392191ad5e22cad8592482 to your computer and use it in GitHub Desktop.
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