style: fix lint for the banner/adaptive changes

- ruff format and import ordering (main_window, data_collection_settings,
  beam_center_panel, beamline_state_panel)
- rename unused unpacked variable in test_title_label
- replace the mousePressEvent monkeypatch on the beamline state title
  with a proper eventFilter so basedpyright accepts the diff

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
duan_jandClaude Fable 5 committed 2026-08-11 10:35:46 +02:00
1 parent a9137b3221
commit ce0ed20d5a
5 files changed
+19 -16

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ def test_toggle_hides_children_and_persists(qtbot):
def test_collapsed_state_restored_on_construction(qtbot):
QSettings("PSI", "AareGUI").setValue(KEY, True)
try:
panel, title, direct_child, nested_child = _build_panel(qtbot)
_panel, title, direct_child, nested_child = _build_panel(qtbot)
# Restore is deferred with a 0 ms timer (siblings don't exist yet at
# TitleLabel construction), so let the event loop run once.
qtbot.waitUntil(lambda: direct_child.isHidden(), timeout=1000)