massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / getopt.pyi
1 # Stubs for getopt\r
2 \r
3 # Based on http://docs.python.org/3.2/library/getopt.html\r
4 \r
5 from typing import List, Tuple\r
6 \r
7 def getopt(args: List[str], shortopts: str,\r
8            longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],\r
9                                              List[str]]: ...\r
10 \r
11 def gnu_getopt(args: List[str], shortopts: str,\r
12                longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],\r
13                                                  List[str]]: ...\r
14 \r
15 class GetoptError(Exception):\r
16     msg = ...  # type: str\r
17     opt = ...  # type: str\r
18 \r
19 error = GetoptError\r