Skip to content

Commit 4d2bc44

Browse files
committed
Apply ruff formatting
1 parent 22a389b commit 4d2bc44

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/rir_updater/ripe/client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,7 @@ def _get_current_roas(self) -> set[tuple[str, str, int]]:
340340
except httpx.RequestError as e:
341341
raise ApiError(f"Network error fetching current ROAs: {e}") from e
342342
_raise_for_status(resp, "fetch current ROAs")
343-
return {
344-
(r["prefix"], r["asn"], r["maximalLength"])
345-
for r in resp.json()
346-
}
343+
return {(r["prefix"], r["asn"], r["maximalLength"]) for r in resp.json()}
347344

348345
def sync_roas(self, roas: list[ROA]) -> dict[str, int]:
349346
"""Diff desired ROAs against current state and publish changes.

0 commit comments

Comments
 (0)