Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sabuhish committed Nov 23, 2024
1 parent e68b218 commit ed54128
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fastapi_mail/msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

0 comments on commit ed54128

Please sign in to comment.