massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / email / generator.pyi
1 # Stubs for email.generator (Python 3.4)\r
2 \r
3 from typing import TextIO, Optional\r
4 from email.message import Message\r
5 from email.policy import Policy\r
6 \r
7 class Generator:\r
8     def clone(self, fp: TextIO) -> 'Generator': ...\r
9     def write(self, s: str) -> None: ...\r
10     def __init__(self, outfp: TextIO, mangle_from_: bool = ...,\r
11                  maxheaderlen: int = ..., *,\r
12                  policy: Policy = ...) -> None: ...\r
13     def flatten(self, msg: Message, unixfrom: bool = ...,\r
14                 linesep: Optional[str] =...) -> None: ...\r
15 \r
16 class BytesGenerator:\r
17     def clone(self, fp: TextIO) -> 'Generator': ...\r
18     def write(self, s: str) -> None: ...\r
19     def __init__(self, outfp: TextIO, mangle_from_: bool = ...,\r
20                  maxheaderlen: int = ..., *,\r
21                  policy: Policy = ...) -> None: ...\r
22     def flatten(self, msg: Message, unixfrom: bool = ...,\r
23                 linesep: Optional[str] =...) -> None: ...\r
24 \r
25 class DecodedGenerator(Generator):\r
26     # TODO `fmt` is positional\r
27     def __init__(self, outfp: TextIO, mangle_from_: bool = ...,\r
28                  maxheaderlen: int = ..., *, fmt: Optional[str]) -> None: ...\r