Skip to content

Commit dd5db46

Browse files
committed
fix(loadtest): annotate latencies as list[float] to satisfy pyright
1 parent 6329254 commit dd5db46

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

loadtest/h2_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def wrapped(idx: int) -> dict[str, object]:
8282
for c in clients:
8383
await c.aclose()
8484

85-
latencies = sorted(r["latency_ms"] for r in results) # type: ignore[arg-type]
85+
latencies: list[float] = sorted(r["latency_ms"] for r in results) # type: ignore[arg-type]
8686
status_counts: dict[int, int] = {}
8787
for r in results:
8888
s = int(r["status"]) # type: ignore[arg-type]

loadtest/raw_fetch_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def send_one() -> dict[str, object]:
7171

7272
await client.aclose()
7373

74-
latencies = sorted(r["latency_ms"] for r in results) # type: ignore[arg-type]
74+
latencies: list[float] = sorted(r["latency_ms"] for r in results) # type: ignore[arg-type]
7575
status_counts: dict[str, int] = {}
7676
for r in results:
7777
key = str(r["status"]) if r["status"] is not None else "network_error"

0 commit comments

Comments
 (0)