mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Add type hints to errors
* Add type hints to errors * Turn on type checking for aqt.errors
This commit is contained in:
parent
b0dd85f87e
commit
186f1c7720
2 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,7 @@ class ErrorHandler(QObject):
|
||||||
def setTimer(self):
|
def setTimer(self):
|
||||||
# we can't create a timer from a different thread, so we post a
|
# we can't create a timer from a different thread, so we post a
|
||||||
# message to the object on the main thread
|
# message to the object on the main thread
|
||||||
self.errorTimer.emit()
|
self.errorTimer.emit() # type: ignore
|
||||||
|
|
||||||
def _setTimer(self):
|
def _setTimer(self):
|
||||||
if not self.timer:
|
if not self.timer:
|
||||||
|
|
|
@ -70,3 +70,5 @@ check_untyped_defs=true
|
||||||
check_untyped_defs=true
|
check_untyped_defs=true
|
||||||
[mypy-aqt.models]
|
[mypy-aqt.models]
|
||||||
check_untyped_defs=true
|
check_untyped_defs=true
|
||||||
|
[mypy-aqt.errors]
|
||||||
|
check_untyped_defs=true
|
||||||
|
|
Loading…
Reference in a new issue