1 # Stubs for distutils.fancy_getopt
\r
4 Any, List, Mapping, Optional, Tuple, Union,
\r
8 _Option = Tuple[str, str, str]
\r
9 _GR = Tuple[List[str], OptionDummy]
\r
11 def fancy_getopt(options: List[_Option],
\r
12 negative_opt: Mapping[_Option, _Option],
\r
14 args: Optional[List[str]]) -> Union[List[str], _GR]: ...
\r
15 def wrap_text(text: str, width: int) -> List[str]: ...
\r
18 def __init__(self, option_table: Optional[List[_Option]] = ...) -> None: ...
\r
19 # TODO kinda wrong, `getopt(object=object())` is invalid
\r
21 def getopt(self, args: Optional[List[str]] = ...) -> _GR: ...
\r
23 def getopt(self, args: Optional[List[str]], object: Any) -> List[str]: ...
\r
24 def get_option_order(self) -> List[Tuple[str, str]]: ...
\r
25 def generate_help(self, header: Optional[str] = ...) -> List[str]: ...
\r
27 class OptionDummy: ...
\r