mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
* Fix over-indented continuation lines * Fix under-indented continuation lines * Fix whitespace around default operator problems * Limit line lengths * Fix inconsistent files
15 lines
459 B
Python
15 lines
459 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
|