mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-13 00:20:10 +08:00
email: improve bytes handling (#9032)
This commit is contained in:
1 parent
3e46f9a9ee
commit
7ab933f3c3
10 files changed
+26
-19
No files matched your search
@@ -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