mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Turn on check_untyped_defs for aqt.emptycards
This commit is contained in:
parent
7d8f856060
commit
10f2f9c037
2 changed files with 4 additions and 2 deletions
|
@ -85,10 +85,10 @@ class EmptyCardsDialog(QDialog):
|
|||
|
||||
self.mw.taskman.run_in_background(delete, on_done)
|
||||
|
||||
def _delete_cards(self, keep_notes):
|
||||
def _delete_cards(self, keep_notes: bool) -> int:
|
||||
to_delete = []
|
||||
note: NoteWithEmptyCards
|
||||
for note in self.report.notes:
|
||||
note: NoteWithEmptyCards = note
|
||||
if keep_notes and note.will_delete_note:
|
||||
# leave first card
|
||||
to_delete.extend(note.card_ids[1:])
|
||||
|
|
|
@ -92,3 +92,5 @@ check_untyped_defs=true
|
|||
check_untyped_defs=true
|
||||
[mypy-aqt.addons]
|
||||
check_untyped_defs=true
|
||||
[mypy-aqt.emptycards]
|
||||
check_untyped_defs=true
|
||||
|
|
Loading…
Reference in a new issue