mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
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:
committed by
Jelle Zijlstra
parent
34c8aa0d4c
commit
15c8474e35
11
stdlib/2/email/mime/application.pyi
Normal file
11
stdlib/2/email/mime/application.pyi
Normal 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: ...
|
||||
Reference in New Issue
Block a user