email: improve bytes handling (#9032)

This commit is contained in:
Jelle Zijlstra
2022-11-01 02:13:30 -07:00
committed by GitHub
parent 3e46f9a9ee
commit 7ab933f3c3
10 changed files with 26 additions and 19 deletions
+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] = ...,
*,