Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions stdlib/2/email/charset.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ def add_charset(charset, header_enc=..., body_enc=..., output_charset=...) -> No
def add_alias(alias, canonical) -> None: ...
def add_codec(charset, codecname) -> None: ...

QP: int # undocumented
BASE64: int # undocumented
SHORTEST: int # undocumented

class Charset:
input_charset = ...
header_encoding = ...
Expand Down
2 changes: 1 addition & 1 deletion stdlib/3/email/mime/application.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ from email.mime.nonmultipart import MIMENonMultipart
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]

class MIMEApplication(MIMENonMultipart):
def __init__(self, _data: bytes, _subtype: str = ...,
def __init__(self, _data: Union[str, bytes], _subtype: str = ...,
_encoder: Callable[[MIMEApplication], None] = ...,
**_params: _ParamsType) -> None: ...
2 changes: 1 addition & 1 deletion stdlib/3/email/mime/audio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ from email.mime.nonmultipart import MIMENonMultipart
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]

class MIMEAudio(MIMENonMultipart):
def __init__(self, _audiodata: bytes, _subtype: Optional[str] = ...,
def __init__(self, _audiodata: Union[str, bytes], _subtype: Optional[str] = ...,
_encoder: Callable[[MIMEAudio], None] = ...,
**_params: _ParamsType) -> None: ...
2 changes: 1 addition & 1 deletion stdlib/3/email/mime/image.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ from email.mime.nonmultipart import MIMENonMultipart
_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]

class MIMEImage(MIMENonMultipart):
def __init__(self, _imagedata: bytes, _subtype: Optional[str] = ...,
def __init__(self, _imagedata: Union[str, bytes], _subtype: Optional[str] = ...,
_encoder: Callable[[MIMEImage], None] = ...,
**_params: _ParamsType) -> None: ...