from abc import ABC, abstractmethod from argparse import _SubParsersAction from mdrsclient.exceptions import UnexpectedException class BaseCommand(ABC): @staticmethod @abstractmethod def register(top_level_subparsers: _SubParsersAction) -> None: raise UnexpectedException("Not implemented.")