from typing import Optional, Dict, Any from abc import ABC, abstractmethod class CommandHandler(ABC): # {"base": {"name": command}, "advance": {"name": command}} @abstractmethod def get_command() -> Dict[str, Dict[str, list]]: "Method to get command from yaml file and return dictionary" pass @abstractmethod def is_contains() -> bool: """Method to check contains command in text or not""" pass @abstractmethod def execute() -> Any: "Method to execute command" pass