mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Merge branch 'main' into aqt-strict-optional-taglimit
This commit is contained in:
commit
a240de2652
3 changed files with 11 additions and 2 deletions
|
@ -44,6 +44,10 @@ strict_optional = True
|
|||
strict_optional = True
|
||||
[mypy-aqt.preferences]
|
||||
strict_optional = True
|
||||
[mypy-aqt.overview]
|
||||
strict_optional = True
|
||||
[mypy-aqt.customstudy]
|
||||
strict_optional = True
|
||||
[mypy-aqt.taglimit]
|
||||
strict_optional = True
|
||||
[mypy-anki.scheduler.base]
|
||||
|
|
|
@ -144,7 +144,11 @@ class CustomStudy(QDialog):
|
|||
form.spin.setValue(current_spinner_value)
|
||||
form.preSpin.setText(text_before_spinner)
|
||||
form.postSpin.setText(text_after_spinner)
|
||||
form.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setText(ok)
|
||||
|
||||
ok_button = form.buttonBox.button(QDialogButtonBox.StandardButton.Ok)
|
||||
assert ok_button is not None
|
||||
ok_button.setText(ok)
|
||||
|
||||
self.radioIdx = idx
|
||||
|
||||
def accept(self) -> None:
|
||||
|
|
|
@ -224,13 +224,14 @@ class Overview:
|
|||
dyn = ""
|
||||
return f'<div class="descfont descmid description {dyn}">{desc}</div>'
|
||||
|
||||
def _table(self) -> str | None:
|
||||
def _table(self) -> str:
|
||||
counts = list(self.mw.col.sched.counts())
|
||||
current_did = self.mw.col.decks.get_current_id()
|
||||
deck_node = self.mw.col.sched.deck_due_tree(current_did)
|
||||
|
||||
but = self.mw.button
|
||||
if self.mw.col.v3_scheduler():
|
||||
assert deck_node is not None
|
||||
buried_new = deck_node.new_count - counts[0]
|
||||
buried_learning = deck_node.learn_count - counts[1]
|
||||
buried_review = deck_node.review_count - counts[2]
|
||||
|
|
Loading…
Reference in a new issue