Skip to content
Myr

more accurate custom shell_complete annotation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent ffeddba · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:src/click/core.py+3 added-2 removed
2020 unmodified lines
2021 is_eager: bool = False,2022 envvar: t.Optional[t.Union[str, t.Sequence[str]]] = None,2023 shell_complete: t.Optional[2024 t.Callable[2025 [Context, "Parameter", str], t.List[t.Union["CompletionItem", str]]2025 [Context, "Parameter", str],2026 t.Union[t.List["CompletionItem"], t.List[str]],2027 ]2028 ] = None,2029 autocompletion: t.Optional[2030 t.Callable[
37 unmodified lines
2068 )20692070 def shell_complete(2071 ctx: Context, param: "Parameter", incomplete: str2071 ) -> t.List[t.Union["CompletionItem", str]]:2072 ) -> t.List["CompletionItem"]:2073 from click.shell_completion import CompletionItem20742075 out = []2076
856 unmodified lines