Files
notify/src/application/contracts/i_sender.py

16 lines
317 B
Python

from abc import ABC, abstractmethod
class ISender(ABC):
@abstractmethod
async def send(
self,
to: str,
subject: str,
body: str,
plain: str | None = None,
*,
inline_png: tuple[str, bytes] | None = None,
) -> None:
raise NotImplementedError