from abc import ABC, abstractmethod class InputHandler(ABC): @abstractmethod def get_input(self) -> str: pass @abstractmethod def cleanup(self) -> None: pass