mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Added stdlib/2.7/getopt.pyi, updated 3/getopt.pyi (#221)
* Added stdlib/2.7/getopt.pyi * Small fixes to stdlib/3/getopt.pyi
This commit is contained in:
committed by
Guido van Rossum
parent
b98580d299
commit
f32e26ebc2
17
stdlib/2.7/getopt.pyi
Normal file
17
stdlib/2.7/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]]: ...
|
||||
@@ -5,12 +5,12 @@
|
||||
from typing import List, Tuple
|
||||
|
||||
def getopt(args: List[str], shortopts: str,
|
||||
longopts: List[str]) -> Tuple[List[Tuple[str, str]],
|
||||
List[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]]: ...
|
||||
longopts: List[str]=...) -> Tuple[List[Tuple[str, str]],
|
||||
List[str]]: ...
|
||||
|
||||
class GetoptError(Exception):
|
||||
msg = ... # type: str
|
||||
|
||||
Reference in New Issue
Block a user