mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
tests: Ignore a lint error found by mypy 1.9.0
Ignore a lint error that has started showing up since mypy 1.9.0. The official docs show that the `.instance()` method does not accept a `cls` argument [1], so either the stubs or mypy are wrong here. [1]: https://doc.qt.io/qtforpython-6.5/PySide6/QtCore/QCoreApplication.html#PySide6.QtCore.PySide6.QtCore.QCoreApplication.instance
This commit is contained in:
parent
53062a9c36
commit
307ecd495c
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ from dangerzone.isolation_provider.dummy import Dummy
|
|||
|
||||
|
||||
def get_qt_app() -> Application:
|
||||
if Application.instance() is None:
|
||||
if Application.instance() is None: # type: ignore [call-arg]
|
||||
return Application()
|
||||
else:
|
||||
return Application.instance()
|
||||
return Application.instance() # type: ignore [call-arg]
|
||||
|
||||
|
||||
def generate_isolated_updater(
|
||||
|
|
Loading…
Reference in a new issue