from abc import abstractmethod from typing import List, Dict from models import BarcodeTemplate, Product class BaseBarcodeGenerator: @abstractmethod def generate(self, data: List[Dict[str, str | Product | BarcodeTemplate | int]]): pass