massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / getopt.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/getopt.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/getopt.pyi
new file mode 100644 (file)
index 0000000..4bdd63d
--- /dev/null
@@ -0,0 +1,19 @@
+# Stubs for getopt\r
+\r
+# Based on http://docs.python.org/3.2/library/getopt.html\r
+\r
+from typing import List, Tuple\r
+\r
+def getopt(args: List[str], shortopts: str,\r
+           longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],\r
+                                             List[str]]: ...\r
+\r
+def gnu_getopt(args: List[str], shortopts: str,\r
+               longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],\r
+                                                 List[str]]: ...\r
+\r
+class GetoptError(Exception):\r
+    msg = ...  # type: str\r
+    opt = ...  # type: str\r
+\r
+error = GetoptError\r