massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / urllib / error.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/urllib/error.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/urllib/error.pyi
new file mode 100644 (file)
index 0000000..91f3b75
--- /dev/null
@@ -0,0 +1,11 @@
+from typing import Dict, Union\r
+from urllib.response import addinfourl\r
+\r
+# Stubs for urllib.error\r
+\r
+class URLError(IOError):\r
+    reason = ...  # type: Union[str, BaseException]\r
+class HTTPError(URLError, addinfourl):\r
+    code = ...  # type: int\r
+    headers = ...  # type: Dict[str, str]\r
+class ContentTooShortError(URLError): ...\r