massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / click / termui.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/click/termui.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2and3/click/termui.pyi
new file mode 100644 (file)
index 0000000..edee4d9
--- /dev/null
@@ -0,0 +1,168 @@
+from typing import (\r
+    Any,\r
+    Callable,\r
+    Generator,\r
+    Iterable,\r
+    IO,\r
+    List,\r
+    Optional,\r
+    Text,\r
+    overload,\r
+    Tuple,\r
+    TypeVar,\r
+)\r
+\r
+from click.core import _ConvertibleType\r
+from click._termui_impl import ProgressBar as _ProgressBar\r
+\r
+\r
+def hidden_prompt_func(prompt: str) -> str:\r
+    ...\r
+\r
+\r
+def _build_prompt(\r
+    text: str,\r
+    suffix: str,\r
+    show_default: bool = ...,\r
+    default: Optional[str] = ...,\r
+) -> str:\r
+    ...\r
+\r
+\r
+def prompt(\r
+    text: str,\r
+    default: Optional[str] = ...,\r
+    hide_input: bool = ...,\r
+    confirmation_prompt: bool = ...,\r
+    type: Optional[_ConvertibleType] = ...,\r
+    value_proc: Optional[Callable[[Optional[str]], Any]] = ...,\r
+    prompt_suffix: str = ...,\r
+    show_default: bool = ...,\r
+    err: bool = ...,\r
+) -> Any:\r
+    ...\r
+\r
+\r
+def confirm(\r
+    text: str,\r
+    default: bool = ...,\r
+    abort: bool = ...,\r
+    prompt_suffix: str = ...,\r
+    show_default: bool = ...,\r
+    err: bool = ...,\r
+) -> bool:\r
+    ...\r
+\r
+\r
+def get_terminal_size() -> Tuple[int, int]:\r
+    ...\r
+\r
+\r
+def echo_via_pager(text: str, color: Optional[bool] = ...) -> None:\r
+    ...\r
+\r
+\r
+_T = TypeVar('_T')\r
+\r
+@overload\r
+def progressbar(\r
+    iterable: Iterable[_T],\r
+    length: Optional[int] = ...,\r
+    label: Optional[str] = ...,\r
+    show_eta: bool = ...,\r
+    show_percent: Optional[bool] = ...,\r
+    show_pos: bool = ...,\r
+    item_show_func: Optional[Callable[[_T], str]] = ...,\r
+    fill_char: str = ...,\r
+    empty_char: str = ...,\r
+    bar_template: str = ...,\r
+    info_sep: str = ...,\r
+    width: int = ...,\r
+    file: Optional[IO] = ...,\r
+    color: Optional[bool] = ...,\r
+) -> _ProgressBar[_T]:\r
+    ...\r
+\r
+@overload\r
+def progressbar(\r
+    iterable: None = ...,\r
+    length: Optional[int] = ...,\r
+    label: Optional[str] = ...,\r
+    show_eta: bool = ...,\r
+    show_percent: Optional[bool] = ...,\r
+    show_pos: bool = ...,\r
+    item_show_func: Optional[Callable[[_T], str]] = ...,\r
+    fill_char: str = ...,\r
+    empty_char: str = ...,\r
+    bar_template: str = ...,\r
+    info_sep: str = ...,\r
+    width: int = ...,\r
+    file: Optional[IO] = ...,\r
+    color: Optional[bool] = ...,\r
+) -> _ProgressBar[int]:\r
+    ...\r
+\r
+def clear() -> None:\r
+    ...\r
+\r
+\r
+def style(\r
+    text: str,\r
+    fg: Optional[str] = ...,\r
+    bg: Optional[str] = ...,\r
+    bold: Optional[bool] = ...,\r
+    dim: Optional[bool] = ...,\r
+    underline: Optional[bool] = ...,\r
+    blink: Optional[bool] = ...,\r
+    reverse: Optional[bool] = ...,\r
+    reset: bool = ...,\r
+):\r
+    ...\r
+\r
+\r
+def unstyle(text: str) -> str:\r
+    ...\r
+\r
+\r
+# Styling options copied from style() for nicer type checking.\r
+def secho(\r
+    text: str,\r
+    file: Optional[IO] = ...,\r
+    nl: bool = ...,\r
+    err: bool = ...,\r
+    color: Optional[bool] = ...,\r
+    fg: Optional[str] = ...,\r
+    bg: Optional[str] = ...,\r
+    bold: Optional[bool] = ...,\r
+    dim: Optional[bool] = ...,\r
+    underline: Optional[bool] = ...,\r
+    blink: Optional[bool] = ...,\r
+    reverse: Optional[bool] = ...,\r
+    reset: bool = ...,\r
+):\r
+    ...\r
+\r
+\r
+def edit(\r
+    text: Optional[str] = ...,\r
+    editor: Optional[str] = ...,\r
+    env: Optional[str] = ...,\r
+    require_save: bool = ...,\r
+    extension: str = ...,\r
+    filename: Optional[str] = ...,\r
+) -> str:\r
+    ...\r
+\r
+\r
+def launch(url: str, wait: bool = ..., locate: bool = ...) -> int:\r
+    ...\r
+\r
+\r
+def getchar(echo: bool = ...) -> Text:\r
+    ...\r
+\r
+\r
+def pause(\r
+    info: str = ..., err: bool = ...\r
+) -> None:\r
+    ...\r