SYMBOL INDEX (1067 symbols across 59 files) FILE: examples/aliases/aliases.py class Config (line 7) | class Config: method __init__ (line 10) | def __init__(self): method add_alias (line 14) | def add_alias(self, alias, cmd): method read_config (line 17) | def read_config(self, filename): method write_config (line 25) | def write_config(self, filename): class AliasedGroup (line 37) | class AliasedGroup(click.Group): method get_command (line 42) | def get_command(self, ctx, cmd_name): method resolve_command (line 70) | def resolve_command(self, ctx, args): function read_config (line 76) | def read_config(ctx, param, value): function cli (line 97) | def cli(): function push (line 102) | def push(): function pull (line 108) | def pull(): function clone (line 114) | def clone(): function commit (line 120) | def commit(): function status (line 127) | def status(config): function alias (line 139) | def alias(config, alias_, cmd, config_file): FILE: examples/colors/colors.py function cli (line 25) | def cli(): FILE: examples/completion/completion.py function cli (line 8) | def cli(): function ls (line 14) | def ls(dir): function get_env_vars (line 18) | def get_env_vars(ctx, param, incomplete): function show_env (line 26) | def show_env(envvar): function group (line 32) | def group(): function list_users (line 36) | def list_users(ctx, param, incomplete): function select_user (line 52) | def select_user(user): FILE: examples/complex/complex/cli.py class Environment (line 10) | class Environment: method __init__ (line 11) | def __init__(self): method log (line 15) | def log(self, msg, *args): method vlog (line 21) | def vlog(self, msg, *args): class ComplexCLI (line 31) | class ComplexCLI(click.Group): method list_commands (line 32) | def list_commands(self, ctx): method get_command (line 40) | def get_command(self, ctx, name): function cli (line 56) | def cli(ctx, verbose, home): FILE: examples/complex/complex/commands/cmd_init.py function cli (line 9) | def cli(ctx, path): FILE: examples/complex/complex/commands/cmd_status.py function cli (line 8) | def cli(ctx): FILE: examples/imagepipe/imagepipe.py function cli (line 11) | def cli(): function process_commands (line 24) | def process_commands(processors): function processor (line 42) | def processor(f): function generator (line 56) | def generator(f): function copy_filename (line 69) | def copy_filename(new, old): function open_cmd (line 84) | def open_cmd(images): function save_cmd (line 110) | def save_cmd(images, filename): function display_cmd (line 123) | def display_cmd(images): function resize_cmd (line 135) | def resize_cmd(images, width, height): function crop_cmd (line 151) | def crop_cmd(images, border): function convert_rotation (line 165) | def convert_rotation(ctx, param, value): function convert_flip (line 178) | def convert_flip(ctx, param, value): function transpose_cmd (line 195) | def transpose_cmd(images, rotate, flip): function blur_cmd (line 212) | def blur_cmd(images, radius): function smoothen_cmd (line 229) | def smoothen_cmd(images, iterations): function emboss_cmd (line 243) | def emboss_cmd(images): function sharpen_cmd (line 255) | def sharpen_cmd(images, factor): function paste_cmd (line 267) | def paste_cmd(images, left, right): FILE: examples/inout/inout.py function cli (line 7) | def cli(input, output): FILE: examples/naval/naval.py function cli (line 6) | def cli(): function ship (line 16) | def ship(): function ship_new (line 22) | def ship_new(name): function ship_move (line 32) | def ship_move(ship, x, y, speed): function ship_shoot (line 41) | def ship_shoot(ship, x, y): function mine (line 47) | def mine(): function mine_set (line 62) | def mine_set(x, y, ty): function mine_remove (line 70) | def mine_remove(x, y): FILE: examples/repo/repo.py class Repo (line 8) | class Repo: method __init__ (line 9) | def __init__(self, home): method set_config (line 14) | def set_config(self, key, value): method __repr__ (line 19) | def __repr__(self): function cli (line 44) | def cli(ctx, repo_home, config, verbose): function clone (line 72) | def clone(repo, src, dest, shallow, rev): function delete (line 91) | def delete(repo): function setuser (line 105) | def setuser(repo, username, email, password): function commit (line 126) | def commit(repo, files, message): function copy (line 161) | def copy(repo, src, dst, force): FILE: examples/termui/termui.py function cli (line 9) | def cli(): function colordemo (line 15) | def colordemo(): function pager (line 23) | def pager(): function progress (line 38) | def progress(count): function open (line 105) | def open(url): function locate (line 112) | def locate(url): function edit (line 118) | def edit(): function clear (line 133) | def clear(): function pause (line 139) | def pause(): function menu (line 145) | def menu(): FILE: examples/validation/validation.py function validate_count (line 6) | def validate_count(ctx, param, value): class URL (line 12) | class URL(click.ParamType): method convert (line 15) | def convert(self, value, param, ctx): function cli (line 34) | def cli(count, foo, url): FILE: src/click/__init__.py function __getattr__ (line 74) | def __getattr__(name: str) -> object: FILE: src/click/_compat.py function _make_text_stream (line 19) | def _make_text_stream( function is_ascii_encoding (line 40) | def is_ascii_encoding(encoding: str) -> bool: function get_best_encoding (line 48) | def get_best_encoding(stream: t.IO[t.Any]) -> str: class _NonClosingTextIOWrapper (line 56) | class _NonClosingTextIOWrapper(io.TextIOWrapper): method __init__ (line 57) | def __init__( method __del__ (line 71) | def __del__(self) -> None: method isatty (line 77) | def isatty(self) -> bool: class _FixupStream (line 82) | class _FixupStream: method __init__ (line 92) | def __init__( method __getattr__ (line 102) | def __getattr__(self, name: str) -> t.Any: method read1 (line 105) | def read1(self, size: int) -> bytes: method readable (line 113) | def readable(self) -> bool: method writable (line 125) | def writable(self) -> bool: method seekable (line 140) | def seekable(self) -> bool: function _is_binary_reader (line 151) | def _is_binary_reader(stream: t.IO[t.Any], default: bool = False) -> bool: function _is_binary_writer (line 160) | def _is_binary_writer(stream: t.IO[t.Any], default: bool = False) -> bool: function _find_binary_reader (line 173) | def _find_binary_reader(stream: t.IO[t.Any]) -> t.BinaryIO | None: function _find_binary_writer (line 191) | def _find_binary_writer(stream: t.IO[t.Any]) -> t.BinaryIO | None: function _stream_is_misconfigured (line 209) | def _stream_is_misconfigured(stream: t.TextIO) -> bool: function _is_compat_stream_attr (line 218) | def _is_compat_stream_attr(stream: t.TextIO, attr: str, value: str | Non... function _is_compatible_text_stream (line 227) | def _is_compatible_text_stream( function _force_correct_text_stream (line 238) | def _force_correct_text_stream( function _force_correct_text_reader (line 284) | def _force_correct_text_reader( function _force_correct_text_writer (line 300) | def _force_correct_text_writer( function get_binary_stdin (line 316) | def get_binary_stdin() -> t.BinaryIO: function get_binary_stdout (line 323) | def get_binary_stdout() -> t.BinaryIO: function get_binary_stderr (line 330) | def get_binary_stderr() -> t.BinaryIO: function get_text_stdin (line 337) | def get_text_stdin(encoding: str | None = None, errors: str | None = Non... function get_text_stdout (line 344) | def get_text_stdout(encoding: str | None = None, errors: str | None = No... function get_text_stderr (line 351) | def get_text_stderr(encoding: str | None = None, errors: str | None = No... function _wrap_io_open (line 358) | def _wrap_io_open( function open_stream (line 371) | def open_stream( class _AtomicFile (line 452) | class _AtomicFile: method __init__ (line 453) | def __init__(self, f: t.IO[t.Any], tmp_filename: str, real_filename: s... method name (line 460) | def name(self) -> str: method close (line 463) | def close(self, delete: bool = False) -> None: method __getattr__ (line 470) | def __getattr__(self, name: str) -> t.Any: method __enter__ (line 473) | def __enter__(self) -> _AtomicFile: method __exit__ (line 476) | def __exit__( method __repr__ (line 484) | def __repr__(self) -> str: function strip_ansi (line 488) | def strip_ansi(value: str) -> str: function _is_jupyter_kernel_output (line 492) | def _is_jupyter_kernel_output(stream: t.IO[t.Any]) -> bool: function should_strip_ansi (line 499) | def should_strip_ansi( function _get_argv_encoding (line 515) | def _get_argv_encoding() -> str: function auto_wrap_for_ansi (line 522) | def auto_wrap_for_ansi(stream: t.TextIO, color: bool | None = None) -> t... function _get_argv_encoding (line 559) | def _get_argv_encoding() -> str: function _get_windows_console_stream (line 562) | def _get_windows_console_stream( function term_len (line 568) | def term_len(x: str) -> int: function isatty (line 572) | def isatty(stream: t.IO[t.Any]) -> bool: function _make_cached_stream_func (line 579) | def _make_cached_stream_func( FILE: src/click/_termui_impl.py class ProgressBar (line 43) | class ProgressBar(t.Generic[V]): method __init__ (line 44) | def __init__( method __enter__ (line 115) | def __enter__(self) -> ProgressBar[V]: method __exit__ (line 120) | def __exit__( method __iter__ (line 128) | def __iter__(self) -> cabc.Iterator[V]: method __next__ (line 134) | def __next__(self) -> V: method render_finish (line 142) | def render_finish(self) -> None: method pct (line 149) | def pct(self) -> float: method time_per_iteration (line 155) | def time_per_iteration(self) -> float: method eta (line 161) | def eta(self) -> float: method format_eta (line 166) | def format_eta(self) -> str: method format_pos (line 181) | def format_pos(self) -> str: method format_pct (line 187) | def format_pct(self) -> str: method format_bar (line 190) | def format_bar(self) -> str: method format_progress_line (line 209) | def format_progress_line(self) -> str: method render_progress (line 236) | def render_progress(self) -> None: method make_step (line 282) | def make_step(self, n_steps: int) -> None: method update (line 304) | def update(self, n_steps: int, current_item: V | None = None) -> None: method finish (line 330) | def finish(self) -> None: method generator (line 335) | def generator(self) -> cabc.Iterator[V]: function pager (line 369) | def pager(generator: cabc.Iterable[str], color: bool | None = None) -> N... function _pipepager (line 411) | def _pipepager( function _tempfilepager (line 507) | def _tempfilepager( function _nullpager (line 554) | def _nullpager( class Editor (line 564) | class Editor: method __init__ (line 565) | def __init__( method get_editor (line 577) | def get_editor(self) -> str: method edit_files (line 594) | def edit_files(self, filenames: cabc.Iterable[str]) -> None: method edit (line 621) | def edit(self, text: bytes | bytearray) -> bytes | None: ... method edit (line 626) | def edit(self, text: str | None) -> str | None: ... method edit (line 628) | def edit(self, text: str | bytes | bytearray | None) -> str | bytes | ... function open_url (line 676) | def open_url(url: str, wait: bool = False, locate: bool = False) -> int: function _translate_ch_to_exc (line 747) | def _translate_ch_to_exc(ch: str) -> None: function raw_terminal (line 764) | def raw_terminal() -> cabc.Iterator[int]: function getchar (line 767) | def getchar(echo: bool) -> str: function raw_terminal (line 818) | def raw_terminal() -> cabc.Iterator[int]: function getchar (line 844) | def getchar(echo: bool) -> str: FILE: src/click/_textwrap.py class TextWrapper (line 8) | class TextWrapper(textwrap.TextWrapper): method _handle_long_word (line 9) | def _handle_long_word( method extra_indent (line 28) | def extra_indent(self, indent: str) -> cabc.Iterator[None]: method indent_only (line 40) | def indent_only(self, text: str) -> str: FILE: src/click/_utils.py class Sentinel (line 7) | class Sentinel(enum.Enum): method __repr__ (line 18) | def __repr__(self) -> str: FILE: src/click/_winconsole.py class Py_buffer (line 87) | class Py_buffer(Structure): function get_buffer (line 105) | def get_buffer(obj: Buffer, writable: bool = False) -> Array[c_char]: class _WindowsConsoleRawIOBase (line 118) | class _WindowsConsoleRawIOBase(io.RawIOBase): method __init__ (line 119) | def __init__(self, handle: int | None) -> None: method isatty (line 122) | def isatty(self) -> t.Literal[True]: class _WindowsConsoleReader (line 127) | class _WindowsConsoleReader(_WindowsConsoleRawIOBase): method readable (line 128) | def readable(self) -> t.Literal[True]: method readinto (line 131) | def readinto(self, b: Buffer) -> int: class _WindowsConsoleWriter (line 162) | class _WindowsConsoleWriter(_WindowsConsoleRawIOBase): method writable (line 163) | def writable(self) -> t.Literal[True]: method _get_error_message (line 167) | def _get_error_message(errno: int) -> str: method write (line 174) | def write(self, b: Buffer) -> int: class ConsoleStream (line 194) | class ConsoleStream: method __init__ (line 195) | def __init__(self, text_stream: t.TextIO, byte_stream: t.BinaryIO) -> ... method name (line 200) | def name(self) -> str: method write (line 203) | def write(self, x: t.AnyStr) -> int: method writelines (line 212) | def writelines(self, lines: cabc.Iterable[t.AnyStr]) -> None: method __getattr__ (line 216) | def __getattr__(self, name: str) -> t.Any: method isatty (line 219) | def isatty(self) -> bool: method __repr__ (line 222) | def __repr__(self) -> str: function _get_text_stdin (line 226) | def _get_text_stdin(buffer_stream: t.BinaryIO) -> t.TextIO: function _get_text_stdout (line 236) | def _get_text_stdout(buffer_stream: t.BinaryIO) -> t.TextIO: function _get_text_stderr (line 246) | def _get_text_stderr(buffer_stream: t.BinaryIO) -> t.TextIO: function _is_console (line 263) | def _is_console(f: t.TextIO) -> bool: function _get_windows_console_stream (line 276) | def _get_windows_console_stream( FILE: src/click/core.py function _complete_visible_commands (line 54) | def _complete_visible_commands( function _check_nested_chain (line 73) | def _check_nested_chain( function batch (line 93) | def batch(iterable: cabc.Iterable[V], batch_size: int) -> list[tuple[V, ... function augment_usage_errors (line 98) | def augment_usage_errors( function iter_params_for_processing (line 116) | def iter_params_for_processing( class ParameterSource (line 143) | class ParameterSource(enum.Enum): class Context (line 169) | class Context: method __init__ (line 273) | def __init__( method protected_args (line 444) | def protected_args(self) -> list[str]: method to_info_dict (line 455) | def to_info_dict(self) -> dict[str, t.Any]: method __enter__ (line 476) | def __enter__(self) -> Context: method __exit__ (line 481) | def __exit__( method scope (line 496) | def scope(self, cleanup: bool = True) -> cabc.Iterator[Context]: method meta (line 534) | def meta(self) -> dict[str, t.Any]: method make_formatter (line 561) | def make_formatter(self) -> HelpFormatter: method with_resource (line 575) | def with_resource(self, context_manager: AbstractContextManager[V]) -> V: method call_on_close (line 604) | def call_on_close(self, f: t.Callable[..., t.Any]) -> t.Callable[..., ... method close (line 616) | def close(self) -> None: method _close_with_exception_info (line 623) | def _close_with_exception_info( method command_path (line 642) | def command_path(self) -> str: method find_root (line 660) | def find_root(self) -> Context: method find_object (line 667) | def find_object(self, object_type: type[V]) -> V | None: method ensure_object (line 679) | def ensure_object(self, object_type: type[V]) -> V: method lookup_default (line 689) | def lookup_default( method lookup_default (line 694) | def lookup_default( method lookup_default (line 698) | def lookup_default(self, name: str, call: bool = True) -> t.Any | None: method fail (line 718) | def fail(self, message: str) -> t.NoReturn: method abort (line 726) | def abort(self) -> t.NoReturn: method exit (line 730) | def exit(self, code: int = 0) -> t.NoReturn: method get_usage (line 740) | def get_usage(self) -> str: method get_help (line 746) | def get_help(self) -> str: method _make_sub_context (line 752) | def _make_sub_context(self, command: Command) -> Context: method invoke (line 761) | def invoke( method invoke (line 766) | def invoke(self, callback: Command, /, *args: t.Any, **kwargs: t.Any) ... method invoke (line 768) | def invoke( method forward (line 826) | def forward(self, cmd: Command, /, *args: t.Any, **kwargs: t.Any) -> t... method set_parameter_source (line 845) | def set_parameter_source(self, name: str, source: ParameterSource) -> ... method get_parameter_source (line 854) | def get_parameter_source(self, name: str) -> ParameterSource | None: class Command (line 873) | class Command: method __init__ (line 935) | def __init__( method to_info_dict (line 979) | def to_info_dict(self, ctx: Context) -> dict[str, t.Any]: method __repr__ (line 990) | def __repr__(self) -> str: method get_usage (line 993) | def get_usage(self, ctx: Context) -> str: method get_params (line 1002) | def get_params(self, ctx: Context) -> list[Parameter]: method format_usage (line 1027) | def format_usage(self, ctx: Context, formatter: HelpFormatter) -> None: method collect_usage_pieces (line 1035) | def collect_usage_pieces(self, ctx: Context) -> list[str]: method get_help_option_names (line 1046) | def get_help_option_names(self, ctx: Context) -> list[str]: method get_help_option (line 1054) | def get_help_option(self, ctx: Context) -> Option | None: method make_parser (line 1081) | def make_parser(self, ctx: Context) -> _OptionParser: method get_help (line 1088) | def get_help(self, ctx: Context) -> str: method get_short_help_str (line 1097) | def get_short_help_str(self, limit: int = 45) -> str: method format_help (line 1120) | def format_help(self, ctx: Context, formatter: HelpFormatter) -> None: method format_help_text (line 1137) | def format_help_text(self, ctx: Context, formatter: HelpFormatter) -> ... method format_options (line 1161) | def format_options(self, ctx: Context, formatter: HelpFormatter) -> None: method format_epilog (line 1173) | def format_epilog(self, ctx: Context, formatter: HelpFormatter) -> None: method make_context (line 1182) | def make_context( method parse_args (line 1219) | def parse_args(self, ctx: Context, args: list[str]) -> list[str]: method invoke (line 1255) | def invoke(self, ctx: Context) -> t.Any: method shell_complete (line 1271) | def shell_complete(self, ctx: Context, incomplete: str) -> list[Comple... method main (line 1319) | def main( method main (line 1329) | def main( method main (line 1338) | def main( method _main_shell_completion (line 1451) | def _main_shell_completion( method __call__ (line 1483) | def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any: class _FakeSubclassCheck (line 1488) | class _FakeSubclassCheck(type): method __subclasscheck__ (line 1489) | def __subclasscheck__(cls, subclass: type) -> bool: method __instancecheck__ (line 1492) | def __instancecheck__(cls, instance: t.Any) -> bool: class _BaseCommand (line 1496) | class _BaseCommand(Command, metaclass=_FakeSubclassCheck): class Group (line 1503) | class Group(Command): method __init__ (line 1556) | def __init__( method to_info_dict (line 1604) | def to_info_dict(self, ctx: Context) -> dict[str, t.Any]: method add_command (line 1622) | def add_command(self, cmd: Command, name: str | None = None) -> None: method command (line 1633) | def command(self, __func: t.Callable[..., t.Any]) -> Command: ... method command (line 1636) | def command( method command (line 1640) | def command( method group (line 1682) | def group(self, __func: t.Callable[..., t.Any]) -> Group: ... method group (line 1685) | def group( method group (line 1689) | def group( method result_callback (line 1733) | def result_callback(self, replace: bool = False) -> t.Callable[[F], F]: method get_command (line 1778) | def get_command(self, ctx: Context, cmd_name: str) -> Command | None: method list_commands (line 1784) | def list_commands(self, ctx: Context) -> list[str]: method collect_usage_pieces (line 1788) | def collect_usage_pieces(self, ctx: Context) -> list[str]: method format_options (line 1793) | def format_options(self, ctx: Context, formatter: HelpFormatter) -> None: method format_commands (line 1797) | def format_commands(self, ctx: Context, formatter: HelpFormatter) -> N... method parse_args (line 1825) | def parse_args(self, ctx: Context, args: list[str]) -> list[str]: method invoke (line 1839) | def invoke(self, ctx: Context) -> t.Any: method resolve_command (line 1907) | def resolve_command( method shell_complete (line 1934) | def shell_complete(self, ctx: Context, incomplete: str) -> list[Comple... class _MultiCommand (line 1954) | class _MultiCommand(Group, metaclass=_FakeSubclassCheck): class CommandCollection (line 1961) | class CommandCollection(Group): method __init__ (line 1977) | def __init__( method add_source (line 1987) | def add_source(self, group: Group) -> None: method get_command (line 1991) | def get_command(self, ctx: Context, cmd_name: str) -> Command | None: method list_commands (line 2008) | def list_commands(self, ctx: Context) -> list[str]: function _check_iter (line 2017) | def _check_iter(value: t.Any) -> cabc.Iterator[t.Any]: class Parameter (line 2027) | class Parameter: method __init__ (line 2120) | def __init__( method to_info_dict (line 2191) | def to_info_dict(self) -> dict[str, t.Any]: method __repr__ (line 2219) | def __repr__(self) -> str: method _parse_decls (line 2222) | def _parse_decls( method human_readable_name (line 2228) | def human_readable_name(self) -> str: method make_metavar (line 2234) | def make_metavar(self, ctx: Context) -> str: method get_default (line 2249) | def get_default( method get_default (line 2254) | def get_default( method get_default (line 2258) | def get_default( method add_to_parser (line 2291) | def add_to_parser(self, parser: _OptionParser, ctx: Context) -> None: method consume_value (line 2294) | def consume_value( method type_cast_value (line 2337) | def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any: method value_is_missing (line 2393) | def value_is_missing(self, value: t.Any) -> bool: method process_value (line 2411) | def process_value(self, ctx: Context, value: t.Any) -> t.Any: method resolve_envvar_value (line 2477) | def resolve_envvar_value(self, ctx: Context) -> str | None: method value_from_envvar (line 2522) | def value_from_envvar(self, ctx: Context) -> str | cabc.Sequence[str] ... method handle_parse_result (line 2538) | def handle_parse_result( method get_help_record (line 2604) | def get_help_record(self, ctx: Context) -> tuple[str, str] | None: method get_usage_pieces (line 2607) | def get_usage_pieces(self, ctx: Context) -> list[str]: method get_error_hint (line 2610) | def get_error_hint(self, ctx: Context) -> str: method shell_complete (line 2617) | def shell_complete(self, ctx: Context, incomplete: str) -> list[Comple... class Option (line 2641) | class Option(Parameter): method __init__ (line 2709) | def __init__( method to_info_dict (line 2869) | def to_info_dict(self) -> dict[str, t.Any]: method get_error_hint (line 2888) | def get_error_hint(self, ctx: Context) -> str: method _parse_decls (line 2894) | def _parse_decls( method add_to_parser (line 2949) | def add_to_parser(self, parser: _OptionParser, ctx: Context) -> None: method get_help_record (line 2988) | def get_help_record(self, ctx: Context) -> tuple[str, str] | None: method get_help_extra (line 3033) | def get_help_extra(self, ctx: Context) -> types.OptionHelpExtra: method prompt_for_value (line 3117) | def prompt_for_value(self, ctx: Context) -> t.Any: method resolve_envvar_value (line 3167) | def resolve_envvar_value(self, ctx: Context) -> str | None: method value_from_envvar (line 3195) | def value_from_envvar(self, ctx: Context) -> t.Any: method consume_value (line 3237) | def consume_value( method process_value (line 3301) | def process_value(self, ctx: Context, value: t.Any) -> t.Any: class Argument (line 3319) | class Argument(Parameter): method __init__ (line 3329) | def __init__( method human_readable_name (line 3351) | def human_readable_name(self) -> str: method make_metavar (line 3356) | def make_metavar(self, ctx: Context) -> str: method _parse_decls (line 3370) | def _parse_decls( method get_usage_pieces (line 3387) | def get_usage_pieces(self, ctx: Context) -> list[str]: method get_error_hint (line 3390) | def get_error_hint(self, ctx: Context) -> str: method add_to_parser (line 3393) | def add_to_parser(self, parser: _OptionParser, ctx: Context) -> None: function __getattr__ (line 3397) | def __getattr__(name: str) -> object: FILE: src/click/decorators.py function pass_context (line 28) | def pass_context(f: t.Callable[te.Concatenate[Context, P], R]) -> t.Call... function pass_obj (line 39) | def pass_obj(f: t.Callable[te.Concatenate[T, P], R]) -> t.Callable[P, R]: function make_pass_decorator (line 51) | def make_pass_decorator( function pass_meta_key (line 100) | def pass_meta_key( function command (line 138) | def command(name: _AnyCallable) -> Command: ... function command (line 144) | def command( function command (line 153) | def command( function command (line 163) | def command( function command (line 168) | def command( function group (line 263) | def group(name: _AnyCallable) -> Group: ... function group (line 269) | def group( function group (line 278) | def group( function group (line 288) | def group( function group (line 293) | def group( function _param_memo (line 314) | def _param_memo(f: t.Callable[..., t.Any], param: Parameter) -> None: function argument (line 324) | def argument( function option (line 352) | def option( function confirmation_option (line 380) | def confirmation_option(*param_decls: str, **kwargs: t.Any) -> t.Callabl... function password_option (line 404) | def password_option(*param_decls: str, **kwargs: t.Any) -> t.Callable[[F... function version_option (line 421) | def version_option( function help_option (line 527) | def help_option(*param_decls: str, **kwargs: t.Any) -> t.Callable[[FC], ... FILE: src/click/exceptions.py function _join_param_hints (line 19) | def _join_param_hints(param_hint: cabc.Sequence[str] | str | None) -> st... class ClickException (line 26) | class ClickException(Exception): method __init__ (line 32) | def __init__(self, message: str) -> None: method format_message (line 39) | def format_message(self) -> str: method __str__ (line 42) | def __str__(self) -> str: method show (line 45) | def show(self, file: t.IO[t.Any] | None = None) -> None: class UsageError (line 56) | class UsageError(ClickException): method __init__ (line 67) | def __init__(self, message: str, ctx: Context | None = None) -> None: method show (line 72) | def show(self, file: t.IO[t.Any] | None = None) -> None: class BadParameter (line 95) | class BadParameter(UsageError): method __init__ (line 113) | def __init__( method format_message (line 124) | def format_message(self) -> str: class MissingParameter (line 137) | class MissingParameter(BadParameter): method __init__ (line 149) | def __init__( method format_message (line 160) | def format_message(self) -> str: method __str__ (line 200) | def __str__(self) -> str: class NoSuchOption (line 208) | class NoSuchOption(UsageError): method __init__ (line 215) | def __init__( method format_message (line 229) | def format_message(self) -> str: class BadOptionUsage (line 242) | class BadOptionUsage(UsageError): method __init__ (line 252) | def __init__( class BadArgumentUsage (line 259) | class BadArgumentUsage(UsageError): class NoArgsIsHelpError (line 268) | class NoArgsIsHelpError(UsageError): method __init__ (line 269) | def __init__(self, ctx: Context) -> None: method show (line 273) | def show(self, file: t.IO[t.Any] | None = None) -> None: class FileError (line 277) | class FileError(ClickException): method __init__ (line 280) | def __init__(self, filename: str, hint: str | None = None) -> None: method format_message (line 288) | def format_message(self) -> str: class Abort (line 294) | class Abort(RuntimeError): class Exit (line 298) | class Exit(RuntimeError): method __init__ (line 307) | def __init__(self, code: int = 0) -> None: FILE: src/click/formatting.py function measure_table (line 14) | def measure_table(rows: cabc.Iterable[tuple[str, str]]) -> tuple[int, ...]: function iter_rows (line 24) | def iter_rows( function wrap_text (line 31) | def wrap_text( class HelpFormatter (line 104) | class HelpFormatter: method __init__ (line 116) | def __init__( method write (line 135) | def write(self, string: str) -> None: method indent (line 139) | def indent(self) -> None: method dedent (line 143) | def dedent(self) -> None: method write_usage (line 147) | def write_usage(self, prog: str, args: str = "", prefix: str | None = ... method write_heading (line 185) | def write_heading(self, heading: str) -> None: method write_paragraph (line 189) | def write_paragraph(self) -> None: method write_text (line 194) | def write_text(self, text: str) -> None: method write_dl (line 210) | def write_dl( method section (line 255) | def section(self, name: str) -> cabc.Iterator[None]: method indentation (line 270) | def indentation(self) -> cabc.Iterator[None]: method getvalue (line 278) | def getvalue(self) -> str: function join_options (line 283) | def join_options(options: cabc.Sequence[str]) -> tuple[str, bool]: FILE: src/click/globals.py function get_current_context (line 13) | def get_current_context(silent: t.Literal[False] = False) -> Context: ... function get_current_context (line 17) | def get_current_context(silent: bool = ...) -> Context | None: ... function get_current_context (line 20) | def get_current_context(silent: bool = False) -> Context | None: function push_context (line 44) | def push_context(ctx: Context) -> None: function pop_context (line 49) | def pop_context() -> None: function resolve_color_default (line 54) | def resolve_color_default(color: bool | None = None) -> bool | None: FILE: src/click/parser.py function _unpack_args (line 51) | def _unpack_args( function _split_opt (line 111) | def _split_opt(opt: str) -> tuple[str, str]: function _normalize_opt (line 120) | def _normalize_opt(opt: str, ctx: Context | None) -> str: class _Option (line 127) | class _Option: method __init__ (line 128) | def __init__( method takes_value (line 162) | def takes_value(self) -> bool: method process (line 165) | def process(self, value: t.Any, state: _ParsingState) -> None: class _Argument (line 181) | class _Argument: method __init__ (line 182) | def __init__(self, obj: CoreArgument, dest: str | None, nargs: int = 1): method process (line 187) | def process( class _ParsingState (line 212) | class _ParsingState: method __init__ (line 213) | def __init__(self, rargs: list[str]) -> None: class _OptionParser (line 220) | class _OptionParser: method __init__ (line 237) | def __init__(self, ctx: Context | None = None) -> None: method add_option (line 261) | def add_option( method add_argument (line 286) | def add_argument(self, obj: CoreArgument, dest: str | None, nargs: int... method parse_args (line 294) | def parse_args( method _process_args_for_args (line 312) | def _process_args_for_args(self, state: _ParsingState) -> None: method _process_args_for_options (line 323) | def _process_args_for_options(self, state: _ParsingState) -> None: method _match_long_opt (line 359) | def _match_long_opt( method _match_short_opt (line 389) | def _match_short_opt(self, arg: str, state: _ParsingState) -> None: method _get_value_from_state (line 429) | def _get_value_from_state( method _process_opts (line 469) | def _process_opts(self, arg: str, state: _ParsingState) -> None: function __getattr__ (line 502) | def __getattr__(name: str) -> object: FILE: src/click/shell_completion.py function shell_complete (line 19) | def shell_complete( class CompletionItem (line 57) | class CompletionItem: method __init__ (line 78) | def __init__( method __getattr__ (line 90) | def __getattr__(self, name: str) -> t.Any: class ShellComplete (line 200) | class ShellComplete: method __init__ (line 224) | def __init__( method func_name (line 237) | def func_name(self) -> str: method source_vars (line 244) | def source_vars(self) -> dict[str, t.Any]: method source (line 256) | def source(self) -> str: method get_completion_args (line 264) | def get_completion_args(self) -> tuple[list[str], str]: method get_completions (line 271) | def get_completions(self, args: list[str], incomplete: str) -> list[Co... method format_completion (line 283) | def format_completion(self, item: CompletionItem) -> str: method complete (line 291) | def complete(self) -> str: class BashComplete (line 304) | class BashComplete(ShellComplete): method _check_version (line 311) | def _check_version() -> None: method source (line 343) | def source(self) -> str: method get_completion_args (line 347) | def get_completion_args(self) -> tuple[list[str], str]: method format_completion (line 359) | def format_completion(self, item: CompletionItem) -> str: class ZshComplete (line 363) | class ZshComplete(ShellComplete): method get_completion_args (line 369) | def get_completion_args(self) -> tuple[list[str], str]: method format_completion (line 381) | def format_completion(self, item: CompletionItem) -> str: class FishComplete (line 399) | class FishComplete(ShellComplete): method get_completion_args (line 405) | def get_completion_args(self) -> tuple[list[str], str]: method format_completion (line 419) | def format_completion(self, item: CompletionItem) -> str: function add_completion_class (line 436) | def add_completion_class( function get_completion_class (line 456) | def get_completion_class(shell: str) -> type[ShellComplete] | None: function split_arg_string (line 466) | def split_arg_string(string: str) -> list[str]: function _is_incomplete_argument (line 503) | def _is_incomplete_argument(ctx: Context, param: Parameter) -> bool: function _start_of_option (line 528) | def _start_of_option(ctx: Context, value: str) -> bool: function _is_incomplete_option (line 537) | def _is_incomplete_option(ctx: Context, args: list[str], param: Paramete... function _resolve_context (line 562) | def _resolve_context( function _resolve_incomplete (line 623) | def _resolve_incomplete( FILE: src/click/termui.py function hidden_prompt_func (line 54) | def hidden_prompt_func(prompt: str) -> str: function _build_prompt (line 60) | def _build_prompt( function _format_default (line 76) | def _format_default(default: t.Any) -> t.Any: function prompt (line 83) | def prompt( function confirm (line 197) | def confirm( function echo_via_pager (line 261) | def echo_via_pager( function progressbar (line 294) | def progressbar( function progressbar (line 314) | def progressbar( function progressbar (line 334) | def progressbar( function clear (line 493) | def clear() -> None: function _interpret_color (line 507) | def _interpret_color(color: int | tuple[int, int, int] | str, offset: in... function style (line 518) | def style( function unstyle (line 647) | def unstyle(text: str) -> str: function secho (line 659) | def secho( function edit (line 694) | def edit( function edit (line 704) | def edit( function edit (line 714) | def edit( function edit (line 724) | def edit( function launch (line 782) | def launch(url: str, wait: bool = False, locate: bool = False) -> int: function getchar (line 816) | def getchar(echo: bool = False) -> str: function raw_terminal (line 846) | def raw_terminal() -> AbstractContextManager[int]: function pause (line 852) | def pause(info: str | None = None, err: bool = False) -> None: FILE: src/click/testing.py class EchoingStdin (line 25) | class EchoingStdin: method __init__ (line 26) | def __init__(self, input: t.BinaryIO, output: t.BinaryIO) -> None: method __getattr__ (line 31) | def __getattr__(self, x: str) -> t.Any: method _echo (line 34) | def _echo(self, rv: bytes) -> bytes: method read (line 40) | def read(self, n: int = -1) -> bytes: method read1 (line 43) | def read1(self, n: int = -1) -> bytes: method readline (line 46) | def readline(self, n: int = -1) -> bytes: method readlines (line 49) | def readlines(self) -> list[bytes]: method __iter__ (line 52) | def __iter__(self) -> cabc.Iterator[bytes]: method __repr__ (line 55) | def __repr__(self) -> str: function _pause_echo (line 60) | def _pause_echo(stream: EchoingStdin | None) -> cabc.Iterator[None]: class BytesIOCopy (line 69) | class BytesIOCopy(io.BytesIO): method __init__ (line 75) | def __init__(self, copy_to: io.BytesIO) -> None: method flush (line 79) | def flush(self) -> None: method write (line 83) | def write(self, b: ReadableBuffer) -> int: class StreamMixer (line 88) | class StreamMixer: method __init__ (line 96) | def __init__(self) -> None: method __del__ (line 101) | def __del__(self) -> None: class _NamedTextIOWrapper (line 114) | class _NamedTextIOWrapper(io.TextIOWrapper): method __init__ (line 115) | def __init__( method name (line 123) | def name(self) -> str: method mode (line 127) | def mode(self) -> str: function make_input_stream (line 131) | def make_input_stream( class Result (line 151) | class Result: method __init__ (line 173) | def __init__( method output (line 195) | def output(self) -> str: method stdout (line 207) | def stdout(self) -> str: method stderr (line 214) | def stderr(self) -> str: method __repr__ (line 224) | def __repr__(self) -> str: class CliRunner (line 229) | class CliRunner: method __init__ (line 251) | def __init__( method get_default_prog_name (line 263) | def get_default_prog_name(self, cli: Command) -> str: method make_env (line 270) | def make_env( method isolation (line 280) | def isolation( method invoke (line 433) | def invoke( method isolated_filesystem (line 547) | def isolated_filesystem( FILE: src/click/types.py class ParamType (line 30) | class ParamType: method to_info_dict (line 62) | def to_info_dict(self) -> dict[str, t.Any]: method __call__ (line 83) | def __call__( method get_metavar (line 92) | def get_metavar(self, param: Parameter, ctx: Context) -> str | None: method get_missing_message (line 95) | def get_missing_message(self, param: Parameter, ctx: Context | None) -... method convert (line 102) | def convert( method split_envvar_value (line 126) | def split_envvar_value(self, rv: str) -> cabc.Sequence[str]: method fail (line 136) | def fail( method shell_complete (line 145) | def shell_complete( class CompositeParamType (line 163) | class CompositeParamType(ParamType): method arity (line 167) | def arity(self) -> int: # type: ignore class FuncParamType (line 171) | class FuncParamType(ParamType): method __init__ (line 172) | def __init__(self, func: t.Callable[[t.Any], t.Any]) -> None: method to_info_dict (line 176) | def to_info_dict(self) -> dict[str, t.Any]: method convert (line 181) | def convert( class UnprocessedParamType (line 195) | class UnprocessedParamType(ParamType): method convert (line 198) | def convert( method __repr__ (line 203) | def __repr__(self) -> str: class StringParamType (line 207) | class StringParamType(ParamType): method convert (line 210) | def convert( method __repr__ (line 229) | def __repr__(self) -> str: class Choice (line 233) | class Choice(ParamType, t.Generic[ParamTypeValue]): method __init__ (line 258) | def __init__( method to_info_dict (line 264) | def to_info_dict(self) -> dict[str, t.Any]: method _normalized_mapping (line 270) | def _normalized_mapping( method normalize_choice (line 288) | def normalize_choice(self, choice: ParamTypeValue, ctx: Context | None... method get_metavar (line 308) | def get_metavar(self, param: Parameter, ctx: Context) -> str | None: method get_missing_message (line 326) | def get_missing_message(self, param: Parameter, ctx: Context | None) -... method convert (line 336) | def convert( method get_invalid_choice_message (line 360) | def get_invalid_choice_message(self, value: t.Any, ctx: Context | None... method __repr__ (line 374) | def __repr__(self) -> str: method shell_complete (line 377) | def shell_complete( class DateTime (line 401) | class DateTime(ParamType): method __init__ (line 424) | def __init__(self, formats: cabc.Sequence[str] | None = None): method to_info_dict (line 431) | def to_info_dict(self) -> dict[str, t.Any]: method get_metavar (line 436) | def get_metavar(self, param: Parameter, ctx: Context) -> str | None: method _try_to_convert_date (line 439) | def _try_to_convert_date(self, value: t.Any, format: str) -> datetime ... method convert (line 445) | def convert( method __repr__ (line 468) | def __repr__(self) -> str: class _NumberParamTypeBase (line 472) | class _NumberParamTypeBase(ParamType): method convert (line 475) | def convert( class _NumberRangeBase (line 490) | class _NumberRangeBase(_NumberParamTypeBase): method __init__ (line 491) | def __init__( method to_info_dict (line 505) | def to_info_dict(self) -> dict[str, t.Any]: method convert (line 516) | def convert( method _clamp (line 547) | def _clamp(self, bound: float, dir: t.Literal[1, -1], open: bool) -> f... method _describe_range (line 557) | def _describe_range(self) -> str: method __repr__ (line 571) | def __repr__(self) -> str: class IntParamType (line 576) | class IntParamType(_NumberParamTypeBase): method __repr__ (line 580) | def __repr__(self) -> str: class IntRange (line 584) | class IntRange(_NumberRangeBase, IntParamType): method _clamp (line 601) | def _clamp( # type: ignore class FloatParamType (line 610) | class FloatParamType(_NumberParamTypeBase): method __repr__ (line 614) | def __repr__(self) -> str: class FloatRange (line 618) | class FloatRange(_NumberRangeBase, FloatParamType): method __init__ (line 636) | def __init__( method _clamp (line 651) | def _clamp(self, bound: float, dir: t.Literal[1, -1], open: bool) -> f... class BoolParamType (line 661) | class BoolParamType(ParamType): method str_to_bool (line 698) | def str_to_bool(value: str | bool) -> bool | None: method convert (line 712) | def convert( method __repr__ (line 726) | def __repr__(self) -> str: class UUIDParameterType (line 730) | class UUIDParameterType(ParamType): method convert (line 733) | def convert( method __repr__ (line 750) | def __repr__(self) -> str: class File (line 754) | class File(ParamType): method __init__ (line 787) | def __init__( method to_info_dict (line 801) | def to_info_dict(self) -> dict[str, t.Any]: method resolve_lazy_flag (line 806) | def resolve_lazy_flag(self, value: str | os.PathLike[str]) -> bool: method convert (line 815) | def convert( method shell_complete (line 858) | def shell_complete( function _is_file_like (line 875) | def _is_file_like(value: t.Any) -> te.TypeGuard[t.IO[t.Any]]: class Path (line 879) | class Path(ParamType): method __init__ (line 914) | def __init__( method to_info_dict (line 943) | def to_info_dict(self) -> dict[str, t.Any]: method coerce_path_result (line 955) | def coerce_path_result( method convert (line 968) | def convert( method shell_complete (line 1041) | def shell_complete( class Tuple (line 1060) | class Tuple(CompositeParamType): method __init__ (line 1074) | def __init__(self, types: cabc.Sequence[type[t.Any] | ParamType]) -> N... method to_info_dict (line 1077) | def to_info_dict(self) -> dict[str, t.Any]: method name (line 1083) | def name(self) -> str: # type: ignore method arity (line 1087) | def arity(self) -> int: # type: ignore method convert (line 1090) | def convert( function convert_type (line 1112) | def convert_type(ty: t.Any | None, default: t.Any | None = None) -> Para... class OptionHelpExtra (line 1205) | class OptionHelpExtra(t.TypedDict, total=False): FILE: src/click/utils.py function _posixify (line 32) | def _posixify(name: str) -> str: function safecall (line 36) | def safecall(func: t.Callable[P, R]) -> t.Callable[P, R | None]: function make_str (line 49) | def make_str(value: t.Any) -> str: function make_default_short_help (line 59) | def make_default_short_help(help: str, max_length: int = 45) -> str: class LazyFile (line 109) | class LazyFile: method __init__ (line 116) | def __init__( method __getattr__ (line 143) | def __getattr__(self, name: str) -> t.Any: method __repr__ (line 146) | def __repr__(self) -> str: method open (line 151) | def open(self) -> t.IO[t.Any]: method close (line 169) | def close(self) -> None: method close_intelligently (line 174) | def close_intelligently(self) -> None: method __enter__ (line 181) | def __enter__(self) -> LazyFile: method __exit__ (line 184) | def __exit__( method __iter__ (line 192) | def __iter__(self) -> cabc.Iterator[t.AnyStr]: class KeepOpenFile (line 197) | class KeepOpenFile: method __init__ (line 198) | def __init__(self, file: t.IO[t.Any]) -> None: method __getattr__ (line 201) | def __getattr__(self, name: str) -> t.Any: method __enter__ (line 204) | def __enter__(self) -> KeepOpenFile: method __exit__ (line 207) | def __exit__( method __repr__ (line 215) | def __repr__(self) -> str: method __iter__ (line 218) | def __iter__(self) -> cabc.Iterator[t.AnyStr]: function echo (line 222) | def echo( function get_binary_stream (line 325) | def get_binary_stream(name: t.Literal["stdin", "stdout", "stderr"]) -> t... function get_text_stream (line 337) | def get_text_stream( function open_file (line 358) | def open_file( function format_filename (line 407) | def format_filename( function get_app_dir (line 449) | def get_app_dir(app_name: str, roaming: bool = True, force_posix: bool =... class PacifyFlushWrapper (line 498) | class PacifyFlushWrapper: method __init__ (line 507) | def __init__(self, wrapped: t.IO[t.Any]) -> None: method flush (line 510) | def flush(self) -> None: method __getattr__ (line 519) | def __getattr__(self, attr: str) -> t.Any: function _detect_program_name (line 523) | def _detect_program_name( function _expand_args (line 578) | def _expand_args( FILE: tests/conftest.py function runner (line 7) | def runner(request): FILE: tests/test_arguments.py function test_nargs_star (line 10) | def test_nargs_star(runner): function test_nargs_tup (line 23) | def test_nargs_tup(runner): function test_nargs_tup_composite (line 46) | def test_nargs_tup_composite(runner, opts): function test_nargs_mismatch_with_tuple_type (line 58) | def test_nargs_mismatch_with_tuple_type(): function test_nargs_err (line 67) | def test_nargs_err(runner): function test_bytes_args (line 82) | def test_bytes_args(runner, monkeypatch): function test_file_args (line 105) | def test_file_args(runner): function test_path_allow_dash (line 128) | def test_path_allow_dash(runner): function test_file_atomics (line 139) | def test_file_atomics(runner): function test_stdout_default (line 159) | def test_stdout_default(runner): function test_nargs_envvar (line 184) | def test_nargs_envvar(runner, nargs, value, expect): function test_nargs_envvar_only_if_values_empty (line 204) | def test_nargs_envvar_only_if_values_empty(runner): function test_empty_nargs (line 217) | def test_empty_nargs(runner): function test_missing_arg (line 237) | def test_missing_arg(runner): function test_required_argument (line 272) | def test_required_argument(value, expect_missing, processed_value): function test_implicit_non_required (line 287) | def test_implicit_non_required(runner): function test_deprecated_usage (line 298) | def test_deprecated_usage(runner): function test_deprecated_warning (line 310) | def test_deprecated_warning(runner, deprecated): function test_deprecated_required (line 331) | def test_deprecated_required(runner): function test_eat_options (line 336) | def test_eat_options(runner): function test_nargs_star_ordering (line 352) | def test_nargs_star_ordering(runner): function test_nargs_specified_plus_star_ordering (line 365) | def test_nargs_specified_plus_star_ordering(runner): function test_good_defaults_for_nargs (line 401) | def test_good_defaults_for_nargs(runner, argument_params, args, expected): function test_bad_defaults_for_nargs (line 477) | def test_bad_defaults_for_nargs(runner, default, message): function test_multiple_param_decls_not_allowed (line 489) | def test_multiple_param_decls_not_allowed(runner): function test_multiple_not_allowed (line 498) | def test_multiple_not_allowed(): function test_subcommand_help (line 503) | def test_subcommand_help(runner): function test_nested_subcommand_help (line 522) | def test_nested_subcommand_help(runner): function test_when_argument_decorator_is_used_multiple_times_cls_is_preserved (line 544) | def test_when_argument_decorator_is_used_multiple_times_cls_is_preserved(): function test_duplicate_names_warning (line 573) | def test_duplicate_names_warning(runner, args_one, args_two): function test_argument_custom_class_can_override_type_cast_value_and_never_sees_unset (line 597) | def test_argument_custom_class_can_override_type_cast_value_and_never_se... FILE: tests/test_basic.py function test_basic_functionality (line 13) | def test_basic_functionality(runner): function test_repr (line 32) | def test_repr(): function test_return_values (line 50) | def test_return_values(): function test_basic_group (line 60) | def test_basic_group(runner): function test_group_commands_dict (line 86) | def test_group_commands_dict(runner): function test_group_from_list (line 98) | def test_group_from_list(runner): function test_string_option (line 120) | def test_string_option(runner, args, expect): function test_int_option (line 143) | def test_int_option(runner, args, expect): function test_uuid_option (line 169) | def test_uuid_option(runner, args, expect): function test_float_option (line 194) | def test_float_option(runner, args, expect): function test_boolean_switch (line 226) | def test_boolean_switch(runner, args, default, expect): function test_boolean_flag (line 249) | def test_boolean_flag(runner, default, args, expect): function test_boolean_conversion (line 266) | def test_boolean_conversion(runner, value, expect): function test_flag_value_dual_options (line 314) | def test_flag_value_dual_options(runner, default, args, expected): function test_file_option (line 331) | def test_file_option(runner): function test_file_lazy_mode (line 352) | def test_file_lazy_mode(runner): function test_path_option (line 392) | def test_path_option(runner): function test_choice_option (line 438) | def test_choice_option(runner): function test_choice_argument (line 459) | def test_choice_argument(runner): function test_choice_argument_enum (line 480) | def test_choice_argument_enum(runner): function test_choice_argument_custom_type (line 507) | def test_choice_argument_custom_type(runner): function test_choice_argument_none (line 538) | def test_choice_argument_none(runner): function test_datetime_option_default (line 566) | def test_datetime_option_default(runner): function test_datetime_option_custom (line 593) | def test_datetime_option_custom(runner): function test_required_option (line 604) | def test_required_option(runner): function test_evaluation_order (line 615) | def test_evaluation_order(runner): function test_hidden_option (line 658) | def test_hidden_option(runner): function test_hidden_command (line 669) | def test_hidden_command(runner): function test_hidden_group (line 683) | def test_hidden_group(runner): function test_summary_line (line 702) | def test_summary_line(runner): function test_help_invalid_default (line 721) | def test_help_invalid_default(runner): FILE: tests/test_chain.py function debug (line 8) | def debug(): function test_basic_chaining (line 15) | def test_basic_chaining(runner): function test_chaining_help (line 47) | def test_chaining_help(runner, args, expect): function test_chaining_with_options (line 68) | def test_chaining_with_options(runner): function test_no_command_result_callback (line 89) | def test_no_command_result_callback(runner, chain, expect): function test_chaining_with_arguments (line 107) | def test_chaining_with_arguments(runner): function test_pipeline (line 135) | def test_pipeline(runner, args, input, expect): function test_args_and_chain (line 170) | def test_args_and_chain(runner): function test_group_arg_behavior (line 192) | def test_group_arg_behavior(runner): function test_group_chaining (line 222) | def test_group_chaining(runner): FILE: tests/test_command_decorators.py function test_command_no_parens (line 6) | def test_command_no_parens(runner): function test_custom_command_no_parens (line 16) | def test_custom_command_no_parens(runner): function test_group_no_parens (line 36) | def test_group_no_parens(runner): function test_params_argument (line 62) | def test_params_argument(runner): function test_generate_name (line 86) | def test_generate_name(name: str) -> None: FILE: tests/test_commands.py function test_other_command_invoke (line 8) | def test_other_command_invoke(runner): function test_other_command_forward (line 24) | def test_other_command_forward(runner): function test_forwarded_params_consistency (line 44) | def test_forwarded_params_consistency(runner): function test_auto_shorthelp (line 66) | def test_auto_shorthelp(runner): function test_command_no_args_is_help (line 98) | def test_command_no_args_is_help(runner): function test_default_maps (line 104) | def test_default_maps(runner): function test_group_with_args (line 129) | def test_group_with_args(runner, args, exit_code, expect): function test_custom_parser (line 144) | def test_custom_parser(runner): function test_object_propagation (line 210) | def test_object_propagation(runner): function test_other_command_invoke_with_defaults (line 262) | def test_other_command_invoke_with_defaults(runner, opt_params, expected): function test_invoked_subcommand (line 279) | def test_invoked_subcommand(runner): function test_aliased_command_canonical_name (line 302) | def test_aliased_command_canonical_name(runner): function test_group_add_command_name (line 322) | def test_group_add_command_name(runner): function test_iter_params_for_processing (line 374) | def test_iter_params_for_processing( function test_help_param_priority (line 395) | def test_help_param_priority(runner): function test_unprocessed_options (line 464) | def test_unprocessed_options(runner): function test_deprecated_in_help_messages (line 482) | def test_deprecated_in_help_messages(runner, doc, deprecated): function test_deprecated_in_invocation (line 495) | def test_deprecated_in_invocation(runner, deprecated): function test_command_parse_args_collects_option_prefixes (line 507) | def test_command_parse_args_collects_option_prefixes(): function test_group_parse_args_collects_base_option_prefixes (line 520) | def test_group_parse_args_collects_base_option_prefixes(): function test_group_invoke_collects_used_option_prefixes (line 542) | def test_group_invoke_collects_used_option_prefixes(runner): function test_abort_exceptions_with_disabled_standalone_mode (line 567) | def test_abort_exceptions_with_disabled_standalone_mode(runner, exc): FILE: tests/test_compat.py function test_is_jupyter_kernel_output (line 4) | def test_is_jupyter_kernel_output(): FILE: tests/test_context.py function test_ensure_context_objects (line 17) | def test_ensure_context_objects(runner): function test_get_context_objects (line 39) | def test_get_context_objects(runner): function test_get_context_objects_no_ensuring (line 62) | def test_get_context_objects_no_ensuring(runner): function test_get_context_objects_missing (line 85) | def test_get_context_objects_missing(runner): function test_multi_enter (line 110) | def test_multi_enter(runner): function test_global_context_object (line 130) | def test_global_context_object(runner): function test_context_meta (line 143) | def test_context_meta(runner): function test_make_pass_meta_decorator (line 162) | def test_make_pass_meta_decorator(runner): function test_make_pass_meta_decorator_doc (line 177) | def test_make_pass_meta_decorator_doc(): function test_hiding_of_unset_sentinel_in_callbacks (line 184) | def test_hiding_of_unset_sentinel_in_callbacks(): function test_context_pushing (line 294) | def test_context_pushing(): function test_pass_obj (line 320) | def test_pass_obj(runner): function test_close_before_pop (line 336) | def test_close_before_pop(runner): function test_close_before_exit (line 357) | def test_close_before_exit(runner): function test_multiple_eager_callbacks (line 395) | def test_multiple_eager_callbacks(runner, cli_args, expect): function test_no_state_leaks (line 436) | def test_no_state_leaks(runner): function test_with_resource (line 522) | def test_with_resource(): function test_with_resource_exception (line 538) | def test_with_resource_exception() -> None: function test_with_resource_nested_exception (line 592) | def test_with_resource_nested_exception() -> None: function test_make_pass_decorator_args (line 663) | def test_make_pass_decorator_args(runner): function test_propagate_show_default_setting (line 700) | def test_propagate_show_default_setting(runner): function test_exit_not_standalone (line 714) | def test_exit_not_standalone(): function test_parameter_source (line 766) | def test_parameter_source(runner, option_args, invoke_args, expect): function test_propagate_opt_prefixes (line 777) | def test_propagate_opt_prefixes(): FILE: tests/test_custom_classes.py function test_command_context_class (line 4) | def test_command_context_class(): function test_context_invoke_type (line 20) | def test_context_invoke_type(runner): function test_context_formatter_class (line 47) | def test_context_formatter_class(): function test_group_command_class (line 66) | def test_group_command_class(runner): function test_group_group_class (line 84) | def test_group_group_class(runner): function test_group_group_class_self (line 102) | def test_group_group_class_self(runner): FILE: tests/test_defaults.py function test_basic_defaults (line 4) | def test_basic_defaults(runner): function test_multiple_defaults (line 16) | def test_multiple_defaults(runner): function test_nargs_plus_multiple (line 29) | def test_nargs_plus_multiple(runner): function test_multiple_flag_default (line 43) | def test_multiple_flag_default(runner): function test_flag_default_map (line 64) | def test_flag_default_map(runner): function test_shared_param_prefers_first_default (line 89) | def test_shared_param_prefers_first_default(runner): FILE: tests/test_formatting.py function test_basic_functionality (line 4) | def test_basic_functionality(runner): function test_wrapping_long_options_strings (line 52) | def test_wrapping_long_options_strings(runner): function test_wrapping_long_command_name (line 87) | def test_wrapping_long_command_name(runner): function test_formatting_empty_help_lines (line 122) | def test_formatting_empty_help_lines(runner): function test_formatting_usage_error (line 145) | def test_formatting_usage_error(runner): function test_formatting_usage_error_metavar_missing_arg (line 161) | def test_formatting_usage_error_metavar_missing_arg(runner): function test_formatting_usage_error_metavar_bad_arg (line 182) | def test_formatting_usage_error_metavar_bad_arg(runner): function test_formatting_usage_error_nested (line 198) | def test_formatting_usage_error_nested(runner): function test_formatting_usage_error_no_help (line 218) | def test_formatting_usage_error_no_help(runner): function test_formatting_usage_custom_help (line 233) | def test_formatting_usage_custom_help(runner): function test_formatting_custom_type_metavar (line 249) | def test_formatting_custom_type_metavar(runner): function test_truncating_docstring (line 270) | def test_truncating_docstring(runner): function test_truncating_docstring_no_help (line 299) | def test_truncating_docstring_no_help(runner): function test_removing_multiline_marker (line 319) | def test_removing_multiline_marker(runner): function test_global_show_default (line 338) | def test_global_show_default(runner): function test_formatting_with_options_metavar_empty (line 355) | def test_formatting_with_options_metavar_empty(runner): function test_help_formatter_write_text (line 361) | def test_help_formatter_write_text(): FILE: tests/test_imports.py function test_light_imports (line 59) | def test_light_imports(): FILE: tests/test_info_dict.py function test_parameter (line 211) | def test_parameter(obj, expect): function test_command (line 252) | def test_command(obj, expect): function test_context (line 258) | def test_context(): function test_paramtype_no_name (line 271) | def test_paramtype_no_name(): FILE: tests/test_normalization.py function test_option_normalization (line 6) | def test_option_normalization(runner): function test_choice_normalization (line 18) | def test_choice_normalization(runner): function test_command_normalization (line 53) | def test_command_normalization(runner): FILE: tests/test_options.py function test_prefixes (line 21) | def test_prefixes(runner): function test_invalid_option (line 37) | def test_invalid_option(runner): function test_deprecated_usage (line 48) | def test_deprecated_usage(runner, deprecated): function test_deprecated_warning (line 62) | def test_deprecated_warning(runner, deprecated): function test_deprecated_required (line 83) | def test_deprecated_required(runner): function test_deprecated_prompt (line 88) | def test_deprecated_prompt(runner): function test_invalid_nargs (line 93) | def test_invalid_nargs(runner): function test_nargs_tup_composite_mult (line 102) | def test_nargs_tup_composite_mult(runner): function test_counting (line 114) | def test_counting(runner): function test_unknown_options (line 137) | def test_unknown_options(runner, unknown_flag): function test_suggest_possible_options (line 155) | def test_suggest_possible_options(runner, value, expect): function test_multiple_required (line 163) | def test_multiple_required(runner): function test_good_defaults_for_multiple (line 225) | def test_good_defaults_for_multiple(runner, multiple, nargs, default, ex... function test_bad_defaults_for_multiple (line 361) | def test_bad_defaults_for_multiple( function test_empty_envvar (line 385) | def test_empty_envvar(runner, env_key): function test_multiple_envvar (line 396) | def test_multiple_envvar(runner): function test_boolean_flag_envvar (line 494) | def test_boolean_flag_envvar(runner, envvar_name, envvar_value, expected): function test_boolean_envvar_bad_values (line 533) | def test_boolean_envvar_bad_values(runner, value): function test_multiple_default_help (line 547) | def test_multiple_default_help(runner): function test_show_default_default_map (line 560) | def test_show_default_default_map(runner): function test_multiple_default_type (line 572) | def test_multiple_default_type(): function test_multiple_default_composite_type (line 581) | def test_multiple_default_composite_type(): function test_parse_multiple_default_composite_type (line 591) | def test_parse_multiple_default_composite_type(runner): function test_dynamic_default_help_unset (line 605) | def test_dynamic_default_help_unset(runner): function test_dynamic_default_help_text (line 623) | def test_dynamic_default_help_text(runner): function test_dynamic_default_help_special_method (line 641) | def test_dynamic_default_help_special_method(runner): function test_intrange_default_help_text (line 664) | def test_intrange_default_help_text(type, expect): function test_count_default_type_help (line 672) | def test_count_default_type_help(): function test_file_type_help_default (line 681) | def test_file_type_help_default(): function test_toupper_envvar_prefix (line 697) | def test_toupper_envvar_prefix(runner): function test_nargs_envvar (line 708) | def test_nargs_envvar(runner): function test_show_envvar (line 733) | def test_show_envvar(runner): function test_show_envvar_auto_prefix (line 744) | def test_show_envvar_auto_prefix(runner): function test_show_envvar_auto_prefix_dash_in_command (line 755) | def test_show_envvar_auto_prefix_dash_in_command(runner): function test_custom_validation (line 770) | def test_custom_validation(runner): function test_callback_validates_prompt (line 788) | def test_callback_validates_prompt(runner, monkeypatch): function test_winstyle_options (line 804) | def test_winstyle_options(runner): function test_legacy_options (line 821) | def test_legacy_options(runner): function test_required_option (line 852) | def test_required_option(value, expect_missing, processed_value): function test_missing_required_flag (line 866) | def test_missing_required_flag(runner): function test_missing_choice (line 875) | def test_missing_choice(runner): function test_missing_envvar (line 890) | def test_missing_envvar(runner): function test_case_insensitive_choice (line 913) | def test_case_insensitive_choice(runner): function test_case_insensitive_choice_returned_exactly (line 946) | def test_case_insensitive_choice_returned_exactly(runner): function test_option_help_preserve_paragraphs (line 957) | def test_option_help_preserve_paragraphs(runner): function test_argument_custom_class (line 984) | def test_argument_custom_class(runner): function test_option_custom_class (line 1000) | def test_option_custom_class(runner): function test_option_custom_class_can_override_type_cast_value_and_never_sees_unset (line 1028) | def test_option_custom_class_can_override_type_cast_value_and_never_sees... function test_option_custom_class_reusable (line 1052) | def test_option_custom_class_reusable(runner): function test_help_option_custom_names_and_class (line 1099) | def test_help_option_custom_names_and_class(runner, custom_class, name_s... function test_bool_flag_with_type (line 1119) | def test_bool_flag_with_type(runner): function test_aliases_for_flags (line 1129) | def test_aliases_for_flags(runner): function test_option_names (line 1170) | def test_option_names(runner, option_args, expected): function test_flag_duplicate_names (line 1184) | def test_flag_duplicate_names(runner): function test_show_default_boolean_flag_name (line 1190) | def test_show_default_boolean_flag_name(runner, default, expect): function test_show_true_default_boolean_flag_value (line 1207) | def test_show_true_default_boolean_flag_value(runner): function test_hide_false_default_boolean_flag_value (line 1225) | def test_hide_false_default_boolean_flag_value(runner, default): function test_show_default_string (line 1242) | def test_show_default_string(runner): function test_show_default_with_empty_string (line 1251) | def test_show_default_with_empty_string(runner): function test_do_not_show_no_default (line 1259) | def test_do_not_show_no_default(runner): function test_do_not_show_default_empty_multiple (line 1268) | def test_do_not_show_default_empty_multiple(): function test_show_default_precedence (line 1294) | def test_show_default_precedence(ctx_value, opt_value, extra_value, expe... function test_option_with_optional_value (line 1321) | def test_option_with_optional_value(runner, args, expect): function test_multiple_option_with_optional_value (line 1333) | def test_multiple_option_with_optional_value(runner): function test_type_from_flag_value (line 1356) | def test_type_from_flag_value(): function test_flag_value_and_default (line 1462) | def test_flag_value_and_default(runner, opt_params, args, expected): function test_invalid_flag_definition (line 1481) | def test_invalid_flag_definition(runner, args, opts): function test_default_dual_option_callback (line 1530) | def test_default_dual_option_callback(runner, default, args, expected): function test_envvar_string_flag_value (line 1640) | def test_envvar_string_flag_value(runner, flag_value, envvar_value, expe... function test_flag_auto_detection (line 1670) | def test_flag_auto_detection( function test_invalid_flag_combinations (line 1685) | def test_invalid_flag_combinations(runner, kwargs, message): function test_non_flag_with_non_negatable_default (line 1692) | def test_non_flag_with_non_negatable_default(runner): class HashType (line 1706) | class HashType(enum.Enum): class Number (line 1712) | class Number(enum.IntEnum): class Letter (line 1717) | class Letter(enum.StrEnum): class Color (line 1723) | class Color(enum.Flag): class ColorInt (line 1729) | class ColorInt(enum.IntFlag): function test_choice_usage_rendering (line 1750) | def test_choice_usage_rendering(runner, choices, metavar): function test_choice_default_rendering (line 1834) | def test_choice_default_rendering(runner, choices, default, default_stri... function test_duplicate_names_warning (line 1866) | def test_duplicate_names_warning(runner, opts_one, opts_two): class EnumSentinel (line 1881) | class EnumSentinel(enum.Enum): method __bool__ (line 1884) | def __bool__(self) -> Literal[False]: function test_dual_options_custom_type_sentinel_flag_value (line 1961) | def test_dual_options_custom_type_sentinel_flag_value(runner, sentinel, ... class EngineType (line 2003) | class EngineType(enum.Enum): class Class1 (line 2009) | class Class1: class Class2 (line 2013) | class Class2: function test_custom_type_flag_value_standalone_option (line 2101) | def test_custom_type_flag_value_standalone_option(runner, opt_params, ar... function test_custom_type_flag_value_dual_options (line 2229) | def test_custom_type_flag_value_dual_options( function test_custom_type_frozenset_flag_value (line 2254) | def test_custom_type_frozenset_flag_value(runner): function test_flag_value_on_option_with_zero_or_one_args (line 2292) | def test_flag_value_on_option_with_zero_or_one_args(flag_type, args, exp... FILE: tests/test_parser.py function test_split_arg_string (line 18) | def test_split_arg_string(value, expect): function test_parser_default_prefixes (line 22) | def test_parser_default_prefixes(): function test_parser_collects_prefixes (line 27) | def test_parser_collects_prefixes(): FILE: tests/test_shell_completion.py function _get_completions (line 20) | def _get_completions(cli, args, incomplete): function _get_words (line 25) | def _get_words(cli, args, incomplete): function test_command (line 29) | def test_command(): function test_group (line 39) | def test_group(): function test_nested_group (line 56) | def test_nested_group(args: list[str], word: str, expect: list[str]) -> ... function test_group_command_same_option (line 75) | def test_group_command_same_option(): function test_chained (line 85) | def test_chained(): function test_help_option (line 104) | def test_help_option(): function test_argument_order (line 110) | def test_argument_order(): function test_argument_default (line 127) | def test_argument_default(): function test_type_choice (line 142) | def test_type_choice(): function test_choice_special_characters (line 149) | def test_choice_special_characters(): function test_choice_conflicting_prefix (line 156) | def test_choice_conflicting_prefix(): function test_option_count (line 168) | def test_option_count(): function test_option_optional (line 174) | def test_option_optional(): function test_path_types (line 192) | def test_path_types(type, expect): function test_absolute_path (line 201) | def test_absolute_path(): function test_option_flag (line 209) | def test_option_flag(): function test_flag_option_with_nargs_option (line 223) | def test_flag_option_with_nargs_option(): function test_option_custom (line 236) | def test_option_custom(): function test_option_multiple (line 252) | def test_option_multiple(): function test_option_nargs (line 264) | def test_option_nargs(): function test_argument_nargs (line 271) | def test_argument_nargs(): function test_double_dash (line 289) | def test_double_dash(): function test_hidden (line 304) | def test_hidden(): function test_add_different_name (line 325) | def test_add_different_name(): function test_completion_item_data (line 332) | def test_completion_item_data(): function _patch_for_completion (line 339) | def _patch_for_completion(monkeypatch): function test_full_source (line 347) | def test_full_source(runner, shell): function test_full_complete (line 366) | def test_full_complete(runner, shell, env, expect): function test_zsh_full_complete_with_colons (line 424) | def test_zsh_full_complete_with_colons( function test_context_settings (line 447) | def test_context_settings(runner): function test_choice_case_sensitive (line 461) | def test_choice_case_sensitive(value, expect): function _restore_available_shells (line 471) | def _restore_available_shells(tmpdir): function test_add_completion_class (line 480) | def test_add_completion_class(): function test_add_completion_class_with_name (line 500) | def test_add_completion_class_with_name(): function test_add_completion_class_decorator (line 526) | def test_add_completion_class_decorator(): function test_files_closed (line 542) | def test_files_closed(runner) -> None: FILE: tests/test_termui.py class FakeClock (line 13) | class FakeClock: method __init__ (line 14) | def __init__(self): method advance_time (line 17) | def advance_time(self, seconds=1): method time (line 20) | def time(self): function _create_progress (line 24) | def _create_progress(length=10, **kwargs): function test_progressbar_strip_regression (line 31) | def test_progressbar_strip_regression(runner, monkeypatch): function test_progressbar_length_hint (line 47) | def test_progressbar_length_hint(runner, monkeypatch): function test_progressbar_no_tty (line 77) | def test_progressbar_no_tty(runner, monkeypatch): function test_progressbar_hidden_manual (line 88) | def test_progressbar_hidden_manual(runner, monkeypatch): function test_progressbar_time_per_iteration (line 100) | def test_progressbar_time_per_iteration(runner, avg, expected): function test_progressbar_eta (line 106) | def test_progressbar_eta(runner, finished, expected): function test_progressbar_format_eta (line 123) | def test_progressbar_format_eta(runner, eta, expected): function test_progressbar_format_pos (line 129) | def test_progressbar_format_pos(runner, pos, length): function test_progressbar_format_bar (line 142) | def test_progressbar_format_bar(runner, length, finished, pos, avg, expe... function test_progressbar_format_progress_line (line 159) | def test_progressbar_format_progress_line( function test_progressbar_format_progress_line_with_show_func (line 173) | def test_progressbar_format_progress_line_with_show_func(runner, test_it... function test_progressbar_init_exceptions (line 186) | def test_progressbar_init_exceptions(runner): function test_progressbar_iter_outside_with_exceptions (line 191) | def test_progressbar_iter_outside_with_exceptions(runner): function test_progressbar_is_iterator (line 198) | def test_progressbar_is_iterator(runner, monkeypatch): function test_choices_list_in_prompt (line 213) | def test_choices_list_in_prompt(runner, monkeypatch): function test_file_prompt_default_format (line 241) | def test_file_prompt_default_format(runner, file_kwargs): function test_secho (line 251) | def test_secho(runner): function test_secho_non_text (line 262) | def test_secho_non_text(runner, value, expect): function test_progressbar_yields_all_items (line 269) | def test_progressbar_yields_all_items(runner): function test_progressbar_update (line 274) | def test_progressbar_update(runner, monkeypatch): function test_progressbar_item_show_func (line 297) | def test_progressbar_item_show_func(runner, monkeypatch): function test_progressbar_update_with_item_show_func (line 313) | def test_progressbar_update_with_item_show_func(runner, monkeypatch): function test_progress_bar_update_min_steps (line 333) | def test_progress_bar_update_min_steps(runner): function test_getchar_windows (line 346) | def test_getchar_windows(runner, monkeypatch, key_char, echo): function test_getchar_special_key_windows (line 359) | def test_getchar_special_key_windows(runner, monkeypatch, special_key_ch... function test_getchar_windows_exceptions (line 372) | def test_getchar_windows_exceptions(runner, monkeypatch, key_char, exc): function test_fast_edit (line 381) | def test_fast_edit(runner): function test_edit (line 387) | def test_edit(runner): function test_prompt_required_with_required (line 416) | def test_prompt_required_with_required(runner, prompt_required, required... function test_prompt_required_false (line 443) | def test_prompt_required_false(runner, args, expect): function test_confirmation_prompt (line 467) | def test_confirmation_prompt(runner, prompt, input, default, expect): function test_false_show_default_cause_no_default_display_in_prompt (line 487) | def test_false_show_default_cause_no_default_display_in_prompt(runner): function test_flag_value_prompt (line 663) | def test_flag_value_prompt( FILE: tests/test_testing.py function test_runner (line 12) | def test_runner(): function test_echo_stdin_stream (line 30) | def test_echo_stdin_stream(): function test_echo_stdin_prompts (line 48) | def test_echo_stdin_prompts(): function test_runner_with_stream (line 88) | def test_runner_with_stream(): function test_prompts (line 111) | def test_prompts(): function test_getchar (line 133) | def test_getchar(): function test_catch_exceptions (line 163) | def test_catch_exceptions(): function test_catch_exceptions_cli_runner (line 187) | def test_catch_exceptions_cli_runner(): function test_with_color (line 209) | def test_with_color(): function test_with_color_errors (line 225) | def test_with_color_errors(): function test_with_color_but_pause_not_blocking (line 245) | def test_with_color_but_pause_not_blocking(): function test_exit_code_and_output_from_sys_exit (line 256) | def test_exit_code_and_output_from_sys_exit(): function test_env (line 326) | def test_env(): function test_stderr (line 344) | def test_stderr(): function test_args (line 381) | def test_args(args, expected_output): function test_setting_prog_name_in_extra (line 393) | def test_setting_prog_name_in_extra(): function test_command_standalone_mode_returns_value (line 404) | def test_command_standalone_mode_returns_value(): function test_file_stdin_attrs (line 417) | def test_file_stdin_attrs(runner): function test_isolated_runner (line 428) | def test_isolated_runner(runner): function test_isolated_runner_custom_tempdir (line 435) | def test_isolated_runner_custom_tempdir(runner, tmp_path): function test_isolation_stderr_errors (line 443) | def test_isolation_stderr_errors(): function test_isolation_flushes_unflushed_stderr (line 454) | def test_isolation_flushes_unflushed_stderr(): FILE: tests/test_types.py function test_range (line 31) | def test_range(type, value, expect): function test_range_fail (line 47) | def test_range_fail(type, value, expect): function test_float_range_no_clamp_open (line 54) | def test_float_range_no_clamp_open(): function test_cast_multi_default (line 77) | def test_cast_multi_default(runner, nargs, multiple, default, expect): function test_path_type (line 98) | def test_path_type(runner, cls, expect): function _symlinks_supported (line 109) | def _symlinks_supported(): function test_path_resolve_symlink (line 125) | def test_path_resolve_symlink(tmp_path, runner): function _non_utf8_filenames_supported (line 148) | def _non_utf8_filenames_supported(): function test_path_surrogates (line 163) | def test_path_surrogates(tmp_path, monkeypatch): function test_file_surrogates (line 226) | def test_file_surrogates(type, tmp_path): function test_file_error_surrogates (line 238) | def test_file_error_surrogates(): function test_invalid_path_with_esc_sequence (line 246) | def test_invalid_path_with_esc_sequence(): function test_choice_get_invalid_choice_message (line 254) | def test_choice_get_invalid_choice_message(): FILE: tests/test_utils.py function test_unset_sentinel (line 24) | def test_unset_sentinel(): function test_echo (line 72) | def test_echo(runner): function test_echo_custom_file (line 96) | def test_echo_custom_file(): function test_echo_no_streams (line 102) | def test_echo_no_streams(monkeypatch, runner): function test_styling (line 151) | def test_styling(styles, ref): function test_unstyle_other_ansi (line 157) | def test_unstyle_other_ansi(text, expect): function test_filename_formatting (line 161) | def test_filename_formatting(): function test_prompts (line 169) | def test_prompts(runner): function test_confirm_repeat (line 209) | def test_confirm_repeat(runner): function test_prompts_abort (line 218) | def test_prompts_abort(monkeypatch, capsys): function test_prompts_eof (line 233) | def test_prompts_eof(runner): function _test_gen_func (line 246) | def _test_gen_func(): function _test_gen_func_fails (line 253) | def _test_gen_func_fails(): function _test_gen_func_echo (line 258) | def _test_gen_func_echo(file=None): function _test_simulate_keyboard_interrupt (line 264) | def _test_simulate_keyboard_interrupt(file=None): function test_echo_via_pager (line 382) | def test_echo_via_pager(monkeypatch, capfd, pager_cmd, test): function test_echo_color_flag (line 421) | def test_echo_color_flag(monkeypatch, capfd): function test_prompt_cast_default (line 455) | def test_prompt_cast_default(capfd, monkeypatch): function test_echo_writing_to_standard_error (line 463) | def test_echo_writing_to_standard_error(capfd, monkeypatch): function test_echo_with_capsys (line 540) | def test_echo_with_capsys(capsys): function test_open_file (line 546) | def test_open_file(runner): function test_open_file_pathlib_dash (line 568) | def test_open_file_pathlib_dash(runner): function test_open_file_ignore_errors_stdin (line 584) | def test_open_file_ignore_errors_stdin(runner): function test_open_file_respects_ignore (line 595) | def test_open_file_respects_ignore(runner): function test_open_file_ignore_invalid_utf8 (line 604) | def test_open_file_ignore_invalid_utf8(runner): function test_open_file_ignore_no_encoding (line 613) | def test_open_file_ignore_no_encoding(runner): function test_open_file_atomic_permissions_existing_file (line 624) | def test_open_file_atomic_permissions_existing_file(runner, permissions): function test_open_file_atomic_permissions_new_file (line 641) | def test_open_file_atomic_permissions_new_file(runner): function test_iter_keepopenfile (line 660) | def test_iter_keepopenfile(tmpdir): function test_iter_lazyfile (line 669) | def test_iter_lazyfile(tmpdir): class MockMain (line 679) | class MockMain: method __init__ (line 682) | def __init__(self, package_name): function test_detect_program_name (line 697) | def test_detect_program_name(path, main, expected): function test_expand_args (line 701) | def test_expand_args(monkeypatch): function test_make_default_short_help (line 741) | def test_make_default_short_help(value, max_length, alter, expect): FILE: tests/typing/typing_aliased_group.py class AliasedGroup (line 10) | class AliasedGroup(click.Group): method get_command (line 11) | def get_command(self, ctx: click.Context, cmd_name: str) -> click.Comm... method resolve_command (line 22) | def resolve_command( function cli (line 32) | def cli() -> None: function push (line 40) | def push() -> None: function pop (line 45) | def pop() -> None: FILE: tests/typing/typing_confirmation_option.py function dropdb (line 10) | def dropdb() -> None: FILE: tests/typing/typing_group_kw_options.py function hello (line 7) | def hello() -> None: FILE: tests/typing/typing_help_option.py function hello (line 8) | def hello() -> None: FILE: tests/typing/typing_options.py function hello (line 11) | def hello(count: int, name: str) -> None: FILE: tests/typing/typing_password_option.py function encrypt (line 10) | def encrypt(password: str) -> None: FILE: tests/typing/typing_progressbar.py function test_length_is_int (line 9) | def test_length_is_int() -> None: function it (line 16) | def it() -> tuple[str, ...]: function test_generic_on_iterable (line 20) | def test_generic_on_iterable() -> None: FILE: tests/typing/typing_simple_example.py function hello (line 11) | def hello(count: int, name: str) -> None: FILE: tests/typing/typing_version_option.py function hello (line 12) | def hello() -> None: