From ce104d16a3ac7337c452131819dda419b53f42d0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 4 May 2020 15:21:03 +1000 Subject: [PATCH] mypy/isort fixes --- qt/aqt/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qt/aqt/models.py b/qt/aqt/models.py index 54c703f35..f070ba1c5 100644 --- a/qt/aqt/models.py +++ b/qt/aqt/models.py @@ -3,8 +3,7 @@ import collections import re from operator import itemgetter -from typing import Optional -from typing import List +from typing import List, Optional import aqt.clayout from anki import stdmodels @@ -203,7 +202,7 @@ class AddModel(QDialog): for m in sorted(self.col.models.all(), key=itemgetter("name")): item = QListWidgetItem(_("Clone: %s") % m["name"]) self.dialog.models.addItem(item) - self.models.append((False, m)) + self.models.append((False, m)) # type: ignore self.dialog.models.setCurrentRow(0) # the list widget will swallow the enter key s = QShortcut(QKeySequence("Return"), self)