From e9b18c14f229c3b4b3c97b544d7d62467484f6a2 Mon Sep 17 00:00:00 2001 From: Glutanimate Date: Thu, 25 Mar 2021 02:28:58 +0100 Subject: [PATCH] Fix (?) operation output type hint --- qt/aqt/filtered_deck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/filtered_deck.py b/qt/aqt/filtered_deck.py index 15c9cc134..658fcfe87 100644 --- a/qt/aqt/filtered_deck.py +++ b/qt/aqt/filtered_deck.py @@ -4,7 +4,7 @@ from typing import List, Optional, Tuple import aqt -from anki.collection import OpChangesWithCount, SearchNode +from anki.collection import OpChangesWithID, SearchNode from anki.decks import DeckDict, DeckID, FilteredDeckConfig from anki.errors import SearchError from anki.lang import without_unicode_isolation @@ -302,7 +302,7 @@ class FilteredDeckConfigDialog(QDialog): if not self._update_deck(): return - def success(out: OpChangesWithCount) -> None: + def success(out: OpChangesWithID) -> None: gui_hooks.filtered_deck_dialog_did_add_or_update_deck(self, self.deck) saveGeom(self, self.GEOMETRY_KEY) aqt.dialogs.markClosed(self.DIALOG_KEY)