From 307ecd495c36a0aac682de24670e12b025398598 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 24 Apr 2024 16:43:57 +0300 Subject: [PATCH] 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 --- tests/gui/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gui/__init__.py b/tests/gui/__init__.py index 061bf4a..4cab65f 100644 --- a/tests/gui/__init__.py +++ b/tests/gui/__init__.py @@ -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(