fix(types): T7 — eliminate all remaining 38 mypy errors; fix DeckyRow subscript in engine tests

This commit is contained in:
2026-05-01 02:07:53 -04:00
parent 7e4da95091
commit ee24a7551f
27 changed files with 58 additions and 50 deletions

View File

@@ -80,8 +80,8 @@ async def test_update_persists_validated_cfg_no_recreate_on_save(
rows = await repo.list_topology_deckies(
topology_with_ssh_decky["topology_id"]
)
row = next(r for r in rows if r["uuid"] == topology_with_ssh_decky["decky_uuid"])
cfg_blob = row["decky_config"]
row = next(r for r in rows if r.uuid == topology_with_ssh_decky["decky_uuid"])
cfg_blob = row.decky_config
if isinstance(cfg_blob, str):
cfg_blob = json.loads(cfg_blob)
assert cfg_blob["service_config"]["ssh"] == {"password": "hunter2"}