chore: adhere to ruff's RUF rules, 2nd try (#2420)

* chore: adhere to ruff's `RUF` rules, 2nd try
closes #2382
This commit is contained in:
dni ⚡
2024-04-17 07:36:22 +02:00
committed by GitHub
parent d78f6a1f9e
commit daa1b5a313
13 changed files with 36 additions and 28 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ class LndRestNode(Node):
status_code=HTTPStatus.BAD_REQUEST, detail="Channel point required"
)
asyncio.create_task(self._close_channel(point, force))
asyncio.create_task(self._close_channel(point, force)) # noqa: RUF006
async def get_channels(self) -> list[NodeChannel]:
normal, pending, closed = await asyncio.gather(