From 586af15a1bf4fef976ea38c9ebd95b120cb52f0d Mon Sep 17 00:00:00 2001 From: thefux Date: Sat, 18 Jul 2026 14:41:32 +0000 Subject: [PATCH] chore: fix ruff lint errors (E402, F401, I001) --- tests/unit/test_wallet.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/unit/test_wallet.py b/tests/unit/test_wallet.py index effc03ab..108db581 100644 --- a/tests/unit/test_wallet.py +++ b/tests/unit/test_wallet.py @@ -2133,8 +2133,6 @@ async def test_lightning_fallback_on_429_no_in_place_retry() -> None: # _is_mint_rate_limited — strict HTTP 429 only (no substring matching) # --------------------------------------------------------------------------- -import time as _time_module - def _http_429_error(message: str = "") -> httpx.HTTPStatusError: """Create an HTTP 429 error with optional message in the response body.""" @@ -2266,7 +2264,7 @@ def test_classify_500_with_rate_limit_text_is_not_mint_rate_limited() -> None: async def test_probe_does_not_escalate_consecutive_rate_limits() -> None: """When a probe fails with a rate limit, _consecutive_rate_limits should NOT increment — the probe is a recovery check, not a new request.""" - from routstr.wallet import _MintRateGuard, _MINT_RATE_LIMIT_BASE_COOLDOWN_SECONDS + from routstr.wallet import _MINT_RATE_LIMIT_BASE_COOLDOWN_SECONDS, _MintRateGuard guard = _MintRateGuard("http://mint", max_concurrency=0)