From ed5c5cbdc3961979c3d15e6e16bad465367a8de4 Mon Sep 17 00:00:00 2001 From: Dash Date: Sat, 17 Oct 2026 11:39:33 +0200 Subject: [PATCH] tests: type queued tasks in the upstream bridge Player.queue holds BaseTask instances, so the bridge's queue encoder takes BaseTask too. ty flagged this once it covered the tests. --- tests/upstream/bridge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/upstream/bridge.py b/tests/upstream/bridge.py index c2aa5e0..2b0e46a 100644 --- a/tests/upstream/bridge.py +++ b/tests/upstream/bridge.py @@ -11,9 +11,9 @@ from pqcli.config import EquipmentType, Monster, StatType from pqcli.game_data import GameData from pqcli.lingo import to_roman from pqcli.mechanic import ( + BaseTask, Player, PlotTask, - RegularTask, Simulation, Stats, ) @@ -106,7 +106,7 @@ def make_spec(seed: str, race: str, class_: str) -> dict[str, Any]: } -def _queue_entry(task: RegularTask) -> str: +def _queue_entry(task: BaseTask) -> str: kind = "plot" if isinstance(task, PlotTask) else "task" text = "Loading" if isinstance(task, PlotTask) else task.description return f"{kind}|{task.duration // 1000}|{text}"