mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add python 2 email.message_from_* stubs (and add types for py3).
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user