mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 03:01:25 +08:00
17
stdlib/2/getopt.pyi
Normal file
17
stdlib/2/getopt.pyi
Normal file
@@ -0,0 +1,17 @@
|
||||
from typing import List, Tuple
|
||||
|
||||
class GetoptError(Exception):
|
||||
opt = ... # type: str
|
||||
msg = ... # type: str
|
||||
def __init__(self, msg: str, opt: str=...) -> None: ...
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
error = GetoptError
|
||||
|
||||
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]]: ...
|
||||
Reference in New Issue
Block a user