fix: pyright-style ignore for setGraphicsEffect(None)
CI / lint (push) Skipped
CI / test (3.11) (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / test (3.11) (pull_request) Successful in 1m3s
CI / test (3.13) (pull_request) Successful in 1m4s
CI / lint (pull_request) Successful in 1m14s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m3s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 2m0s
CI / test (3.12) (pull_request) Successful in 2m34s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 2m37s
CI / test-with-coverage (pull_request) Successful in 2m58s
CI / coverage-analysis (pull_request) Successful in 3s
CI / lint (push) Skipped
CI / test (3.11) (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / test (3.11) (pull_request) Successful in 1m3s
CI / test (3.13) (pull_request) Successful in 1m4s
CI / lint (pull_request) Successful in 1m14s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m3s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 2m0s
CI / test (3.12) (pull_request) Successful in 2m34s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 2m37s
CI / test-with-coverage (pull_request) Successful in 2m58s
CI / coverage-analysis (pull_request) Successful in 3s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user