Complete IMAP provider import fixes - all type hints now use Message instead of email.message.Message
This commit is contained in:
parent
16bc6f0a12
commit
b7cc744ddd
@ -174,7 +174,7 @@ class IMAPProvider(BaseProvider):
|
||||
logger.debug(f"Error parsing message: {e}")
|
||||
return None
|
||||
|
||||
def _get_body(self, msg: email.message.Message) -> str:
|
||||
def _get_body(self, msg: Message) -> str:
|
||||
"""Extract email body."""
|
||||
body = ""
|
||||
|
||||
@ -195,7 +195,7 @@ class IMAPProvider(BaseProvider):
|
||||
|
||||
return body if isinstance(body, str) else str(body)
|
||||
|
||||
def _parse_attachments(self, msg: email.message.Message) -> List[Attachment]:
|
||||
def _parse_attachments(self, msg: Message) -> List[Attachment]:
|
||||
"""Extract attachment metadata."""
|
||||
attachments = []
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user