Skip to content
Myr

Shorten the docstring annotations for confirm and prompt

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

authored by Gene Wood · committed by Gene Wood · parent 20df0b3 · Browse files · 1 file+2 added−10 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+2 added−10 removed

  • other:+2 added−10 removed

1 file+2 added−10 removed

modified:src/click/termui.py+2 added-10 removed
118 unmodified lines
119 show_choices is true and text is "Group by" then the120 prompt will be "Group by (day, week): ".121122 .. versionchanged:: 8.3.1123 The prompt displayed no longer strips trailing whitespace, adding a single124 trailing space. Instead, ``text`` is now displayed followed by125 ``prompt_suffix`` with no whitespace manipulation.126 When ``err`` is True the prompt is sent to ``stderr`` except for the last127 character which is sent to ``stdout``.123 A space is no longer appended to the prompt.124125 .. versionadded:: 8.0126 ``confirmation_prompt`` can be a custom string.127
89 unmodified lines
217 :param err: if set to true the file defaults to ``stderr`` instead of218 ``stdout``, the same as with echo.219220 .. versionchanged:: 8.3.1225 The prompt displayed no longer strips trailing whitespace, adding a single226 trailing space. Instead, ``text`` is now displayed followed by227 ``prompt_suffix`` with no whitespace manipulation.228 When ``err`` is True the prompt is sent to ``stderr`` except for the last229 character which is sent to ``stdout``.221 A space is no longer appended to the prompt.222223 .. versionchanged:: 8.0224 Repeat until input is given if ``default`` is ``None``.225
658 unmodified lines