docopt: add exception types (#9839)

This commit is contained in:
Shantanu
2023-03-04 00:36:16 -08:00
committed by GitHub
parent d76259a062
commit 4b755c7034

View File

@@ -1,12 +1,18 @@
from _typeshed import Incomplete
from collections.abc import Iterable
from typing import Any
from typing import Any, ClassVar
from typing_extensions import TypeAlias
__version__: str
_Argv: TypeAlias = Iterable[str] | str
class DocoptLanguageError(Exception): ...
class DocoptExit(SystemExit):
usage: ClassVar[str]
def __init__(self, message: str = "") -> None: ...
def printable_usage(doc: str) -> str: ...
def docopt(
doc: str, argv: _Argv | None = ..., help: bool = ..., version: Incomplete | None = ..., options_first: bool = ...