From a56457d03bb6fe7f4f1e3bef0fec64703f46a226 Mon Sep 17 00:00:00 2001 From: Dawn Date: Tue, 8 Sep 2026 14:57:29 +0200 Subject: [PATCH] test: route the tell-state stand-in through object for basedpyright Co-Authored-By: Claude Fable 5.1 --- tests/unit/gui/test_busy_overlay.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/gui/test_busy_overlay.py b/tests/unit/gui/test_busy_overlay.py index b7043113..cf188c2d 100644 --- a/tests/unit/gui/test_busy_overlay.py +++ b/tests/unit/gui/test_busy_overlay.py @@ -62,7 +62,9 @@ def test_robot_cooling_is_the_only_blue_busy_state(): def _style(activity: str): # Only .activity.value is read; cast keeps basedpyright off the stand-in. - tell = cast(TellStateModel, SimpleNamespace(activity=SimpleNamespace(value=activity))) + tell = cast( + TellStateModel, cast(object, SimpleNamespace(activity=SimpleNamespace(value=activity))) + ) style = build_busy_overlay_style(is_busy=True, tell_state=tell) assert style is not None return style