File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,8 @@ def _wait_for_press(self, card):
268
268
269
269
Return the id of the destination card.
270
270
:type card: dict(str, str)
271
+ :return: The id of the destination card
272
+ :rtype: str
271
273
"""
272
274
button01_text = card .get ("button01_text" , None )
273
275
button02_text = card .get ("button02_text" , None )
@@ -303,6 +305,8 @@ def display_card(self, card_num):
303
305
"""Display and handle input on a card.
304
306
305
307
:param int card_num: the index of the card to process
308
+ :return: the card number of the selected card
309
+ :rtype: int
306
310
"""
307
311
card = self ._game [card_num ]
308
312
print (card )
@@ -460,7 +464,8 @@ def wrap_nicely(string, max_chars):
460
464
461
465
:param str string: The text to be wrapped.
462
466
:param int max_chars: The maximum number of characters on a line before wrapping.
463
-
467
+ :return: The list of lines
468
+ :rtype: list(str)
464
469
"""
465
470
# string = string.replace('\n', '').replace('\r', '') # strip confusing newlines
466
471
words = string .split (" " )
You can’t perform that action at this time.
0 commit comments