from typing import List import logging class Screen: def __init__(self): self.type = None self.supports_custom_fonts = False def getScreenType(self): return self.type def clearScreen(self): raise NotImplementedError("Subclass must implement this method") def setFont(self, font: str, size: int): raise NotImplementedError("Subclass must implement this method") def setDefaultFont(self): raise NotImplementedError("Subclass must implement this method") def displayLines(self, lines: List[str], x_margin: int = 2): logging.debug(f"Not implemented, not using {lines}, {x_margin}") raise NotImplementedError("Subclass must implement this method")