from abc import ABC, abstractmethod class EmailProvider(ABC): @abstractmethod def send(self, to: str, subject: str, html_body: str) -> None: ... class SMSProvider(ABC): @abstractmethod def send(self, to: str, text: str) -> None: ...