fix email.mime (#1482)

* add missing python 2 email.mime.application stub

* restore missing python 3 mime package

* Delete __init__.py
This commit is contained in:
Thomas Grainger
2017-07-26 16:29:30 +01:00
committed by Jelle Zijlstra
parent 34c8aa0d4c
commit 15c8474e35
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# Stubs for email.mime.application
from typing import Callable, Optional, Tuple, Union
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 = ...,
_encoder: Callable[[MIMEApplication], None] = ...,
**_params: _ParamsType) -> None: ...