Skip to content

Commit 79972f5

Browse files
tests: Ignore some unused parameters
...in fixture-like objects
1 parent 3dad66c commit 79972f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_client_retries_on_server_error(monkeypatch: pytest.MonkeyPatch) -> None
235235

236236
attempts = {"count": 0}
237237

238-
def handler(request: httpx.Request) -> httpx.Response:
238+
def handler(request: httpx.Request) -> httpx.Response: # pyright: ignore[reportUnusedParameter]
239239
attempts["count"] += 1
240240
if attempts["count"] < 3:
241241
return httpx.Response(500, json={"error": "try-again"})
@@ -409,7 +409,7 @@ async def fake_sleep(delay: float) -> None:
409409

410410
attempts = {"count": 0}
411411

412-
async def handler(request: httpx.Request) -> httpx.Response:
412+
async def handler(request: httpx.Request) -> httpx.Response: # pyright: ignore[reportUnusedParameter]
413413
attempts["count"] += 1
414414
if attempts["count"] < 3:
415415
return httpx.Response(503, json={"error": "retry"})

0 commit comments

Comments
 (0)