--- /dev/null
+# 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