mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
16 lines
503 B
Python
16 lines
503 B
Python
from collections.abc import Iterable
|
|
|
|
__all__ = ["GetoptError", "error", "getopt", "gnu_getopt"]
|
|
|
|
def getopt(args: list[str], shortopts: str, longopts: Iterable[str] | str = []) -> tuple[list[tuple[str, str]], list[str]]: ...
|
|
def gnu_getopt(
|
|
args: list[str], shortopts: str, longopts: Iterable[str] | str = []
|
|
) -> tuple[list[tuple[str, str]], list[str]]: ...
|
|
|
|
class GetoptError(Exception):
|
|
msg: str
|
|
opt: str
|
|
def __init__(self, msg: str, opt: str = "") -> None: ...
|
|
|
|
error = GetoptError
|