Turn on check_untyped_defs for aqt.emptycards

This commit is contained in:
Matt Krump 2020-07-30 17:54:42 -06:00
parent 7d8f856060
commit 10f2f9c037
2 changed files with 4 additions and 2 deletions

View file

@ -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:])

View file

@ -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