From 391d849e51c37e38fc255c206b26c25fe866c893 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 Jan 2020 08:53:28 +1000 Subject: [PATCH] fix invalid func name in unfocus hook Don't know why mypy and pylint both failed to catch this :-( --- qt/aqt/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index cdcf4d164..aa1e83957 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -2044,11 +2044,11 @@ update cards set usn=?, mod=?, did=? where id in """ hooks.note_type_added.remove(self.on_item_added) hooks.deck_added.remove(self.on_item_added) - def onUnfocusCard(self, changed: bool, note: Note, field_idx: int): + def on_unfocus_field(self, changed: bool, note: Note, field_idx: int) -> None: self.refreshCurrentCard(note) # covers the tag, note and deck case - def on_item_added(self, item): + def on_item_added(self, item: Any) -> None: self.maybeRefreshSidebar() def onUndoState(self, on):