--- /dev/null
+# Stubs for email.parser (Python 3.4)\r
+\r
+import email.feedparser\r
+from email.message import Message\r
+from typing import Callable, Optional, TextIO, BinaryIO\r
+from email.policy import Policy\r
+\r
+FeedParser = email.feedparser.FeedParser\r
+BytesFeedParser = email.feedparser.BytesFeedParser\r
+\r
+class Parser:\r
+ def __init__(self, _class: Callable[[], Message] = ..., *,\r
+ policy: Policy = ...) -> None: ...\r
+ def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...\r
+ def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r
+\r
+class HeaderParser(Parser):\r
+ def __init__(self, _class: Callable[[], Message] = ..., *,\r
+ policy: Policy = ...) -> None: ...\r
+ def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...\r
+ def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r
+\r
+class BytesHeaderParser(BytesParser):\r
+ def __init__(self, _class: Callable[[], Message] = ..., *,\r
+ policy: Policy = ...) -> None: ...\r
+ def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...\r
+ def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r
+\r
+class BytesParser:\r
+ def __init__(self, _class: Callable[[], Message] = ..., *,\r
+ policy: Policy = ...) -> None: ...\r
+ def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...\r
+ def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\r