mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Fix other docstring to match.
This commit is contained in:
parent
fe6144ff61
commit
6d43ab2fd5
1 changed files with 6 additions and 6 deletions
|
@ -68,14 +68,14 @@ hooks = [
|
||||||
return_type="Tuple[Tuple[int, str], ...]",
|
return_type="Tuple[Tuple[int, str], ...]",
|
||||||
doc="""Used to modify list of answer buttons
|
doc="""Used to modify list of answer buttons
|
||||||
|
|
||||||
buttons_tuple is a sequence of buttons, with each button represented
|
buttons_tuple is a tuple of buttons, with each button represented by a
|
||||||
by a tuple containing an int for the button's number and a string for
|
tuple containing an int for the button's ease and a string for the
|
||||||
the button's label.
|
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,
|
Note: import _ from anki.lang to support translation, using, e.g.,
|
||||||
e.g.,
|
|
||||||
((1, _("Label1")), ...)
|
((1, _("Label1")), ...)
|
||||||
""",
|
""",
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue