1 from typing import IO, Any, Callable, Generator, Iterable, Text, TypeVar, overload
3 from click._termui_impl import ProgressBar as _ProgressBar
4 from click.core import _ConvertibleType
6 def hidden_prompt_func(prompt: str) -> str: ...
7 def _build_prompt(text: str, suffix: str, show_default: bool = ..., default: str | None = ...) -> str: ...
10 default: str | None = ...,
11 hide_input: bool = ...,
12 confirmation_prompt: bool = ...,
13 type: _ConvertibleType | None = ...,
14 value_proc: Callable[[str | None], Any] | None = ...,
15 prompt_suffix: str = ...,
16 show_default: bool = ...,
18 show_choices: bool = ...,
21 text: str, default: bool = ..., abort: bool = ..., prompt_suffix: str = ..., show_default: bool = ..., err: bool = ...
23 def get_terminal_size() -> tuple[int, int]: ...
25 text_or_generator: str | Iterable[str] | Callable[[], Generator[str, None, None]], color: bool | None = ...
32 iterable: Iterable[_T],
33 length: int | None = ...,
34 label: str | None = ...,
36 show_percent: bool | None = ...,
38 item_show_func: Callable[[_T], str] | None = ...,
40 empty_char: str = ...,
41 bar_template: str = ...,
44 file: IO[Any] | None = ...,
45 color: bool | None = ...,
46 ) -> _ProgressBar[_T]: ...
50 length: int | None = ...,
51 label: str | None = ...,
53 show_percent: bool | None = ...,
55 item_show_func: Callable[[Any], str] | None = ...,
57 empty_char: str = ...,
58 bar_template: str = ...,
61 file: IO[Any] | None = ...,
62 color: bool | None = ...,
63 ) -> _ProgressBar[int]: ...
64 def clear() -> None: ...
67 fg: Text | None = ...,
68 bg: Text | None = ...,
69 bold: bool | None = ...,
70 dim: bool | None = ...,
71 underline: bool | None = ...,
72 blink: bool | None = ...,
73 reverse: bool | None = ...,
76 def unstyle(text: Text) -> str: ...
78 # Styling options copied from style() for nicer type checking.
80 message: str | None = ...,
81 file: IO[Any] | None = ...,
84 color: bool | None = ...,
87 bold: bool | None = ...,
88 dim: bool | None = ...,
89 underline: bool | None = ...,
90 blink: bool | None = ...,
91 reverse: bool | None = ...,
95 text: str | None = ...,
96 editor: str | None = ...,
97 env: str | None = ...,
98 require_save: bool = ...,
100 filename: str | None = ...,
102 def launch(url: str, wait: bool = ..., locate: bool = ...) -> int: ...
103 def getchar(echo: bool = ...) -> Text: ...
104 def pause(info: str = ..., err: bool = ...) -> None: ...