mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
19
stdlib/3/getopt.pyi
Normal file
19
stdlib/3/getopt.pyi
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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 = ''
|
||||
opt = ''
|
||||
|
||||
error = GetoptError
|
||||
Reference in New Issue
Block a user