Skip to content

Commit bb08212

Browse files
committed
Fix EmailMessage.attachements parameter annotation.
1 parent 861c665 commit bb08212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/core/mail/message.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class EmailMessage:
6565
to: Optional[Union[Sequence[str], str]] = ...,
6666
bcc: Optional[Union[Sequence[str], str]] = ...,
6767
connection: Optional[Any] = ...,
68-
attachments: Optional[Union[List[Tuple[str, str]], List[MIMEText]]] = ...,
68+
attachments: Optional[Union[List[Tuple[str, Union[str, bytes], str]], List[MIMEText]]] = ...,
6969
headers: Optional[Dict[str, str]] = ...,
7070
cc: Optional[Union[Sequence[str], str]] = ...,
7171
reply_to: Optional[Union[List[Optional[str]], str]] = ...,

0 commit comments

Comments
 (0)