From ed541286e1f2bd3ddb2ba4a7390f80eec72af873 Mon Sep 17 00:00:00 2001 From: sabuhish Date: Sat, 23 Nov 2024 15:37:52 +0400 Subject: [PATCH] fix linter --- fastapi_mail/msg.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fastapi_mail/msg.py b/fastapi_mail/msg.py index 961b993..dfcd6fc 100644 --- a/fastapi_mail/msg.py +++ b/fastapi_mail/msg.py @@ -108,7 +108,7 @@ def attach_alternative(self, message: MIMEMultipart) -> MIMEMultipart: return message async def _message( - self, sender: Optional[str] = None + self, sender: str ) -> Union[EmailMessage, Message]: """ Creates the email message @@ -153,6 +153,3 @@ async def _message( self.message.add_header(header_name, header_content) return self.message - - async def as_string(self) -> Union[EmailMessage, Message]: - return await self._message()