mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 14:46:55 +08:00
docopt: add exception types (#9839)
This commit is contained in:
@@ -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 = ...
|
||||
|
||||
Reference in New Issue
Block a user