Skip to content

Commit c33f04a

Browse files
tcdentclaude
andcommitted
Suppress type errors for stdlib Queue used in place of mp.Queue in tests
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e949013 commit c33f04a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_worker_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ async def handler(agent_id: uuid.UUID, context: SampleContext):
277277
q = queue.Queue()
278278
eh = _EventHandler(
279279
shutdown_event=pool._context.shutdown_event,
280-
queue=q,
280+
queue=q, # type: ignore[arg-type]
281281
tasks=pool._context.tasks,
282282
)
283283

tests/test_worker_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def _make_handler(self, pool):
386386
self._test_queue = queue.Queue()
387387
return _EventHandler(
388388
shutdown_event=pool._context.shutdown_event,
389-
queue=self._test_queue,
389+
queue=self._test_queue, # type: ignore[arg-type]
390390
tasks=pool._context.tasks,
391391
)
392392

0 commit comments

Comments
 (0)