massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / email / parser.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/email/parser.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/email/parser.pyi
new file mode 100644 (file)
index 0000000..d1d3450
--- /dev/null
@@ -0,0 +1,33 @@
+# 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