Fix type hints in dyndeckconf

This commit is contained in:
RumovZ 2021-02-24 11:24:27 +01:00
parent 234ca4d496
commit e95c2fa6ce

View file

@ -185,12 +185,12 @@ class DeckConf(QDialog):
else:
aqt.dialogs.open("Browser", self.mw, search=(search,))
def _second_filter(self) -> Tuple[str]:
def _second_filter(self) -> Tuple[str, ...]:
if self.form.secondFilter.isChecked():
return (self.form.search_2.text(),)
return ()
def _learning_search_node(self) -> Tuple[SearchNode]:
def _learning_search_node(self) -> Tuple[SearchNode, ...]:
"""Return a search node that matches learning cards if the old scheduler is enabled.
If it's a rebuild, exclude cards from this filtered deck as those will be reset.
"""