mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 13:59:45 +08:00
email: improve bytes handling (#9032)
This commit is contained in:
@@ -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] = ...,
|
||||
*,
|
||||
|
||||
@@ -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] = ...,
|
||||
*,
|
||||
|
||||
@@ -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] = ...,
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user