From 9133baa070066ef2fdda193f6445b48c84c698d0 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 21 Jun 2026 13:56:14 -0600 Subject: [PATCH] =?UTF-8?q?plan(SP22):=20Task=207=20=E2=80=94=20replace=20?= =?UTF-8?q?assert=20with=20RuntimeError=20in=20list=5F*=5Facks=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plans/2026-06-21-cyclone-pipeline-agent.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md b/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md index 4a460b8..e3282fb 100644 --- a/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md +++ b/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md @@ -1370,7 +1370,8 @@ Add the methods to the `CycloneClient` class: ```python async def list_ta1_acks(self, since: str) -> list[Ta1Ack]: - assert self._http is not None + if self._http is None: + raise RuntimeError("use `async with CycloneClient(...)`") resp = await self._http.get( "/api/ta1-acks", params={"since": since} ) @@ -1381,7 +1382,8 @@ Add the methods to the `CycloneClient` class: ] async def list_acks(self, since: str) -> list[Ack999]: - assert self._http is not None + if self._http is None: + raise RuntimeError("use `async with CycloneClient(...)`") resp = await self._http.get( "/api/acks", params={"since": since} ) @@ -1394,7 +1396,8 @@ Add the methods to the `CycloneClient` class: async def list_remittances( self, since: str ) -> list[RemittanceSummary]: - assert self._http is not None + if self._http is None: + raise RuntimeError("use `async with CycloneClient(...)`") resp = await self._http.get( "/api/remittances", params={"since": since} )