Files
typeshed/stdlib/3/getopt.pyi
Dakkaron f32e26ebc2 Added stdlib/2.7/getopt.pyi, updated 3/getopt.pyi (#221)
* Added stdlib/2.7/getopt.pyi

* Small fixes to stdlib/3/getopt.pyi
2016-05-25 07:14:42 -07:00

20 lines
576 B
Python

# Stubs for getopt
# Based on http://docs.python.org/3.2/library/getopt.html
from typing import List, Tuple
def getopt(args: List[str], shortopts: str,
longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],
List[str]]: ...
def gnu_getopt(args: List[str], shortopts: str,
longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],
List[str]]: ...
class GetoptError(Exception):
msg = ... # type: str
opt = ... # type: str
error = GetoptError