Skip to content

Commit

Permalink
Merge pull request #10 from AllenInstitute/relax-email-fn-typing
Browse files Browse the repository at this point in the history
Relax typing for email function in ses.py utils
  • Loading branch information
njmei authored Aug 29, 2024
2 parents 6f07789 + 52d19bd commit 813926d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/aibs_informatics_aws_utils/ses.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from email.mime.nonmultipart import MIMENonMultipart
from email.mime.text import MIMEText
from pathlib import Path
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Union

from aibs_informatics_core.models.email_address import EmailAddress
from botocore.exceptions import ClientError
Expand Down Expand Up @@ -90,8 +90,8 @@ def send_email(request: SendEmailRequestRequestTypeDef) -> SendEmailResponseType


def send_simple_email(
source: EmailAddress,
to_addresses: Sequence[EmailAddress],
source: Union[str, EmailAddress],
to_addresses: Sequence[Union[str, EmailAddress]],
subject: str,
body: str = "",
) -> SendEmailResponseTypeDef:
Expand All @@ -118,8 +118,8 @@ def send_raw_email(request: SendRawEmailRequestRequestTypeDef) -> SendRawEmailRe


def send_email_with_attachment(
source: EmailAddress,
to_addresses: Sequence[EmailAddress],
source: Union[str, EmailAddress],
to_addresses: Sequence[Union[str, EmailAddress]],
subject: str,
body: str = "",
attachments_paths: Optional[List[Path]] = None,
Expand Down

0 comments on commit 813926d

Please sign in to comment.