From b1b88a3dd0be02a02526736c3f143f11eed43d9a Mon Sep 17 00:00:00 2001 From: pselamy Date: Sun, 14 Jun 2026 19:14:16 +0000 Subject: [PATCH] fix: lint/format fixes for eth_getLogs chunking Co-Authored-By: Claude Opus 4.6 --- src/polymarket_insider_tracker/profiler/funding.py | 3 +-- tests/profiler/test_funding.py | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/polymarket_insider_tracker/profiler/funding.py b/src/polymarket_insider_tracker/profiler/funding.py index 2c24b64..3782fc7 100644 --- a/src/polymarket_insider_tracker/profiler/funding.py +++ b/src/polymarket_insider_tracker/profiler/funding.py @@ -312,8 +312,7 @@ class FundingTracer: # further back will hit the same wall on every chunk; # stop now and return what we already have. logger.info( - "eth_getLogs chunk %d-%d outside archive horizon for %s; " - "stopping trace", + "eth_getLogs chunk %d-%d outside archive horizon for %s; stopping trace", chunk_start, chunk_end, to_address, diff --git a/tests/profiler/test_funding.py b/tests/profiler/test_funding.py index fc61286..d1aa76d 100644 --- a/tests/profiler/test_funding.py +++ b/tests/profiler/test_funding.py @@ -504,7 +504,7 @@ class TestGetTransferLogs: # Property-style awaitable: web3.py exposes block_number as a property # returning a coroutine, so each access must yield a fresh awaitable. type(mock_eth).block_number = property( # type: ignore[misc] - lambda self: _block_number_coro() + lambda _self: _block_number_coro() ) mock_w3 = MagicMock() mock_w3.eth = mock_eth @@ -573,8 +573,6 @@ class TestGetTransferLogs: @pytest.mark.asyncio async def test_get_transfer_logs_default_lookback_fits_pruned_horizon( self, - funding_tracer: FundingTracer, - mock_polygon_client: MagicMock, ) -> None: """Default ``max_lookback_blocks`` must stay inside what public RPCs serve.