@@ -40,8 +40,10 @@ def prompt(
40
40
41
41
Parameters
42
42
----------
43
- :param name: prompt text
44
- :param default: default value if no input provided.
43
+ name :
44
+ prompt text
45
+ default :
46
+ default value if no input provided.
45
47
46
48
Returns
47
49
-------
@@ -83,10 +85,14 @@ def prompt_bool(
83
85
84
86
Parameters
85
87
----------
86
- :param name: prompt text
87
- :param default: default value if no input provided.
88
- :param yes_choices: default 'y', 'yes', '1', 'on', 'true', 't'
89
- :param no_choices: default 'n', 'no', '0', 'off', 'false', 'f'
88
+ name :
89
+ prompt text
90
+ default :
91
+ default value if no input provided.
92
+ yes_choices :
93
+ default 'y', 'yes', '1', 'on', 'true', 't'
94
+ no_choices :
95
+ default 'n', 'no', '0', 'off', 'false', 'f'
90
96
91
97
Returns
92
98
-------
@@ -130,11 +136,15 @@ def prompt_choices(
130
136
131
137
Parameters
132
138
----------
133
- :param name: prompt text
134
- :param choices: list or tuple of available choices. Choices may be
135
- single strings or (key, value) tuples.
136
- :param default: default value if no input provided.
137
- :param no_choice: acceptable list of strings for "null choice"
139
+ name :
140
+ prompt text
141
+ choices :
142
+ list or tuple of available choices. Choices may be single strings or
143
+ (key, value) tuples.
144
+ default :
145
+ default value if no input provided.
146
+ no_choice :
147
+ acceptable list of strings for "null choice"
138
148
139
149
Returns
140
150
-------
@@ -274,6 +284,6 @@ def unstyle(text: str) -> str:
274
284
275
285
Credit: click.
276
286
277
- :param text: the text to remove style information from.
287
+ text : the text to remove style information from.
278
288
"""
279
289
return strip_ansi (text )
0 commit comments