massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / email / parser.pyi
1 # Stubs for email.parser (Python 3.4)\r
2 \r
3 import email.feedparser\r
4 from email.message import Message\r
5 from typing import Callable, Optional, TextIO, BinaryIO\r
6 from email.policy import Policy\r
7 \r
8 FeedParser = email.feedparser.FeedParser\r
9 BytesFeedParser = email.feedparser.BytesFeedParser\r
10 \r
11 class Parser:\r
12     def __init__(self, _class: Callable[[], Message] = ..., *,\r
13                  policy: Policy = ...) -> None: ...\r
14     def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...\r
15     def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r
16 \r
17 class HeaderParser(Parser):\r
18     def __init__(self, _class: Callable[[], Message] = ..., *,\r
19                  policy: Policy = ...) -> None: ...\r
20     def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...\r
21     def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r
22 \r
23 class BytesHeaderParser(BytesParser):\r
24     def __init__(self, _class: Callable[[], Message] = ..., *,\r
25                  policy: Policy = ...) -> None: ...\r
26     def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...\r
27     def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r
28 \r
29 class BytesParser:\r
30     def __init__(self, _class: Callable[[], Message] = ..., *,\r
31                  policy: Policy = ...) -> None: ...\r
32     def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...\r
33     def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r