--- /dev/null
+# Stubs for email.generator (Python 3.4)\r
+\r
+from typing import TextIO, Optional\r
+from email.message import Message\r
+from email.policy import Policy\r
+\r
+class Generator:\r
+ def clone(self, fp: TextIO) -> 'Generator': ...\r
+ def write(self, s: str) -> None: ...\r
+ def __init__(self, outfp: TextIO, mangle_from_: bool = ...,\r
+ maxheaderlen: int = ..., *,\r
+ policy: Policy = ...) -> None: ...\r
+ def flatten(self, msg: Message, unixfrom: bool = ...,\r
+ linesep: Optional[str] =...) -> None: ...\r
+\r
+class BytesGenerator:\r
+ def clone(self, fp: TextIO) -> 'Generator': ...\r
+ def write(self, s: str) -> None: ...\r
+ def __init__(self, outfp: TextIO, mangle_from_: bool = ...,\r
+ maxheaderlen: int = ..., *,\r
+ policy: Policy = ...) -> None: ...\r
+ def flatten(self, msg: Message, unixfrom: bool = ...,\r
+ linesep: Optional[str] =...) -> None: ...\r
+\r
+class DecodedGenerator(Generator):\r
+ # TODO `fmt` is positional\r
+ def __init__(self, outfp: TextIO, mangle_from_: bool = ...,\r
+ maxheaderlen: int = ..., *, fmt: Optional[str]) -> None: ...\r