Skip to content

Commit 630542f

Browse files
tests: Ignore some unused parameters
...in fixture-like objects
1 parent c08aaed commit 630542f

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
@@ -237,7 +237,7 @@ def test_client_retries_on_server_error(monkeypatch: pytest.MonkeyPatch) -> None
237237

238238
attempts = {"count": 0}
239239

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

412412
attempts = {"count": 0}
413413

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

0 commit comments

Comments
 (0)