diff --git a/qt/aqt/update.py b/qt/aqt/update.py
index 5d3bbda0b..8b179f65f 100644
--- a/qt/aqt/update.py
+++ b/qt/aqt/update.py
@@ -47,18 +47,18 @@ class LatestVersionFinder(QThread):
print("update check failed")
return
if resp["msg"]:
- self.newMsg.emit(resp)
+ self.newMsg.emit(resp) # type: ignore
if resp["ver"]:
- self.newVerAvail.emit(resp["ver"])
+ self.newVerAvail.emit(resp["ver"]) # type: ignore
diff = resp["time"] - time.time()
if abs(diff) > 300:
- self.clockIsOff.emit(diff)
+ self.clockIsOff.emit(diff) # type: ignore
def askAndUpdate(mw, ver):
baseStr = _("""
Anki Updated
Anki %s has been released.
""") % ver
msg = QMessageBox(mw)
- msg.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
+ msg.setStandardButtons(QMessageBox.Yes | QMessageBox.No) # type: ignore
msg.setIcon(QMessageBox.Information)
msg.setText(baseStr + _("Would you like to download it now?"))
button = QPushButton(_("Ignore this update"))
diff --git a/qt/mypy.ini b/qt/mypy.ini
index 132d4cfea..11e0b108c 100644
--- a/qt/mypy.ini
+++ b/qt/mypy.ini
@@ -78,3 +78,5 @@ check_untyped_defs=true
check_untyped_defs=true
[mypy-aqt.taglimit]
check_untyped_defs=true
+[mypy-aqt.update]
+check_untyped_defs=true