Skip to content

Commit 7ea5d28

Browse files
committed
fix(typing): ignore AttrDicts
1 parent 346068e commit 7ea5d28

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

silverback/runner.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ def __init__(self, bot: SilverbackBot, *args, **kwargs):
375375
async def _block_task(self, task_data: TaskData):
376376
async def block_handler(ctx: NewHeadsSubscriptionContext):
377377
self._runtime_task_group.create_task(
378-
self.run_task(task_data, clean_hexbytes_dict(ctx.result))
378+
self.run_task(
379+
task_data,
380+
clean_hexbytes_dict(ctx.result), # type: ignore[arg-type]
381+
)
379382
)
380383

381384
sub_id = await self._web3.subscription_manager.subscribe(
@@ -386,7 +389,10 @@ async def block_handler(ctx: NewHeadsSubscriptionContext):
386389
async def _event_task(self, task_data: TaskData):
387390
async def log_handler(ctx: LogsSubscriptionContext):
388391
self._runtime_task_group.create_task(
389-
self.run_task(task_data, clean_hexbytes_dict(ctx.result))
392+
self.run_task(
393+
task_data,
394+
clean_hexbytes_dict(ctx.result), # type: ignore[arg-type]
395+
)
390396
)
391397

392398
contract_address = task_data.labels.get("address")

0 commit comments

Comments
 (0)