Add type hints to errors

* Add type hints to errors
* Turn on type checking for aqt.errors
This commit is contained in:
Matt Krump 2020-07-24 11:19:40 -06:00
parent b0dd85f87e
commit 186f1c7720
2 changed files with 3 additions and 1 deletions

View file

@ -54,7 +54,7 @@ class ErrorHandler(QObject):
def setTimer(self):
# we can't create a timer from a different thread, so we post a
# message to the object on the main thread
self.errorTimer.emit()
self.errorTimer.emit() # type: ignore
def _setTimer(self):
if not self.timer:

View file

@ -70,3 +70,5 @@ check_untyped_defs=true
check_untyped_defs=true
[mypy-aqt.models]
check_untyped_defs=true
[mypy-aqt.errors]
check_untyped_defs=true