fix(types): T4 — stop spreading TopologySummary as dict; fix heartbeat .get() and scope param

This commit is contained in:
2026-05-01 01:51:43 -04:00
parent d637ff515e
commit e387acf79d
6 changed files with 11 additions and 8 deletions

View File

@@ -74,4 +74,6 @@ async def api_create_topology(
) from exc
raise
row = await repo.get_topology(topology_id)
return TopologySummary(**row)
if row is None: # pragma: no cover — create then vanish
raise HTTPException(status_code=500, detail="topology insert vanished")
return row