Add python 2 email.message_from_* stubs (and add types for py3).

This commit is contained in:
Tim Abbott
2016-01-27 13:58:17 -08:00
parent 73dfe84342
commit b30ca8e42b
2 changed files with 12 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
from typing import IO, Any, AnyStr
def message_from_string(s: AnyStr, *args, **kwargs): ...
def message_from_bytes(s: str, *args, **kwargs): ...
def message_from_file(fp: IO[AnyStr], *args, **kwargs): ...
def message_from_binary_file(fp: IO[str], *args, **kwargs): ...

View File

@@ -1,11 +1,11 @@
# Stubs for email (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
def message_from_string(s, *args, **kws): ...
def message_from_bytes(s, *args, **kws): ...
def message_from_file(fp, *args, **kws): ...
def message_from_binary_file(fp, *args, **kws): ...
from typing import IO, Any
def message_from_string(s: str, *args, **kwargs): ...
def message_from_bytes(s: bytes, *args, **kwargs): ...
def message_from_file(fp: IO[str], *args, **kwargs): ...
def message_from_binary_file(fp: IO[bytes], *args, **kwargs): ...
# Names in __all__ with no definition:
# base64mime