1 from typing import List, Tuple 2 3 def getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ... 4 def gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ... 5 6 class GetoptError(Exception): 7 msg: str 8 opt: str 9 10 error = GetoptError 11