email: improve bytes handling (#9032)

This commit is contained in:
Jelle Zijlstra authored and GitHub committed 2022-11-01 10:13:30 +01:00
1 parent 3e46f9a9ee
commit 7ab933f3c3
10 files changed
+26 -19

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ __all__ = ["MIMEApplication"]
class MIMEApplication(MIMENonMultipart):
def __init__(
self,
_data: str | bytes,
_data: str | bytes | bytearray,
_subtype: str = ...,
_encoder: Callable[[MIMEApplication], object] = ...,
*,
+1 -1
View File
@@ -8,7 +8,7 @@ __all__ = ["MIMEAudio"]
class MIMEAudio(MIMENonMultipart):
def __init__(
self,
_audiodata: str | bytes,
_audiodata: str | bytes | bytearray,
_subtype: str | None = ...,
_encoder: Callable[[MIMEAudio], object] = ...,
*,
+1 -1
View File
@@ -8,7 +8,7 @@ __all__ = ["MIMEImage"]
class MIMEImage(MIMENonMultipart):
def __init__(
self,
_imagedata: str | bytes,
_imagedata: str | bytes | bytearray,
_subtype: str | None = ...,
_encoder: Callable[[MIMEImage], object] = ...,
*,