From 6d43ab2fd59f6b0c3ca97c0062dada1f84372d8a Mon Sep 17 00:00:00 2001 From: Thomas B Date: Thu, 20 Aug 2020 10:33:46 -0400 Subject: [PATCH] Fix other docstring to match. --- qt/tools/genhooks_gui.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qt/tools/genhooks_gui.py b/qt/tools/genhooks_gui.py index 32d840b82..ee1a0ecaa 100644 --- a/qt/tools/genhooks_gui.py +++ b/qt/tools/genhooks_gui.py @@ -68,14 +68,14 @@ hooks = [ return_type="Tuple[Tuple[int, str], ...]", doc="""Used to modify list of answer buttons - buttons_tuple is a sequence of buttons, with each button represented - by a tuple containing an int for the button's number and a string for - the button's label. + buttons_tuple is a tuple of buttons, with each button represented by a + tuple containing an int for the button's ease and a string for the + button's label. - Return a tuple of the form ((1, "Label1"), (2, "Label2"), ...) + Return a tuple of the form ((int, str), ...), e.g.: + ((1, "Label1"), (2, "Label2"), ...) - Note: import _ from anki.lang to support automatic translation, using, - e.g., + Note: import _ from anki.lang to support translation, using, e.g., ((1, _("Label1")), ...) """, ),