From 2b660e31c7fcc6b90a0f7693ca56ad2037ca23bc Mon Sep 17 00:00:00 2001 From: Dawn Date: Mon, 17 Aug 2026 15:16:53 +0200 Subject: [PATCH] fix: pyright-style ignore for setGraphicsEffect(None) basedpyright disables mypy-style 'type: ignore' comments by default, so the diff-quality gate still counted the violation; match the existing 'pyright: ignore[reportArgumentType]' convention from main_window. Co-Authored-By: Claude Fable 5 --- src/aare/gui/panels/beamline_state_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aare/gui/panels/beamline_state_panel.py b/src/aare/gui/panels/beamline_state_panel.py index da6854e5..5e0493fa 100644 --- a/src/aare/gui/panels/beamline_state_panel.py +++ b/src/aare/gui/panels/beamline_state_panel.py @@ -340,7 +340,7 @@ class BeamlineStatePanel(QFrame): return if self._breathing_button is not None: # Qt deletes the old effect (and the animation parented to it). - self._breathing_button.setGraphicsEffect(None) # type: ignore[arg-type] + self._breathing_button.setGraphicsEffect(None) # pyright: ignore[reportArgumentType] self._breathing_button = button if button is None: return