Skip to content

Commit 2aa02e0

Browse files
committed
PYTHON-4782 Final type ignore
1 parent 0e9394b commit 2aa02e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/asynchronous/test_locks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ async def func():
320320
task = asyncio.create_task(func())
321321
await asyncio.sleep(0)
322322
# Task is waiting on the condition, cancel it there.
323-
task.cancel(msg="foo")
323+
task.cancel(msg="foo") # type: ignore[call-arg]
324324
with self.assertRaises(asyncio.CancelledError) as err:
325325
await task
326326
self.assertEqual(err.exception.args, ("foo",))
@@ -354,7 +354,7 @@ async def func():
354354
cond.notify()
355355
await asyncio.sleep(0)
356356
# Task is now trying to re-acquire the lock, cancel it there.
357-
task.cancel(msg="foo")
357+
task.cancel(msg="foo") # type: ignore[call-arg]
358358
cond.release()
359359
with self.assertRaises(asyncio.CancelledError) as err:
360360
await task

0 commit comments

Comments
 (0)