Fix (?) operation output type hint

This commit is contained in:
Glutanimate 2021-03-25 02:28:58 +01:00
parent 713c8f619d
commit e9b18c14f2

View File

@ -4,7 +4,7 @@
from typing import List, Optional, Tuple from typing import List, Optional, Tuple
import aqt import aqt
from anki.collection import OpChangesWithCount, SearchNode from anki.collection import OpChangesWithID, SearchNode
from anki.decks import DeckDict, DeckID, FilteredDeckConfig from anki.decks import DeckDict, DeckID, FilteredDeckConfig
from anki.errors import SearchError from anki.errors import SearchError
from anki.lang import without_unicode_isolation from anki.lang import without_unicode_isolation
@ -302,7 +302,7 @@ class FilteredDeckConfigDialog(QDialog):
if not self._update_deck(): if not self._update_deck():
return return
def success(out: OpChangesWithCount) -> None: def success(out: OpChangesWithID) -> None:
gui_hooks.filtered_deck_dialog_did_add_or_update_deck(self, self.deck) gui_hooks.filtered_deck_dialog_did_add_or_update_deck(self, self.deck)
saveGeom(self, self.GEOMETRY_KEY) saveGeom(self, self.GEOMETRY_KEY)
aqt.dialogs.markClosed(self.DIALOG_KEY) aqt.dialogs.markClosed(self.DIALOG_KEY)