File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,9 +83,11 @@ def cancel_tasks(loop: asyncio.AbstractEventLoop) -> None:
8383 task .cancel ()
8484
8585 if sys .version_info >= (3 , 10 ):
86+ # pyrefly: ignore[bad-argument-type]
8687 loop .run_until_complete (asyncio .gather (* tasks , return_exceptions = True ))
8788 else :
8889 loop .run_until_complete (
90+ # pyrefly: ignore[bad-argument-type]
8991 asyncio .gather (* tasks , loop = loop , return_exceptions = True )
9092 )
9193
Original file line number Diff line number Diff line change @@ -437,6 +437,7 @@ async def session_run() -> None:
437437
438438 try :
439439 loop .run_until_complete (
440+ # pyrefly: ignore[bad-argument-type]
440441 asyncio .gather (* [libkirk .events .start (), session_run ()])
441442 )
442443 except KeyboardInterrupt :
@@ -448,6 +449,7 @@ async def session_run() -> None:
448449 # at this point loop has been closed, so we can collect all
449450 # tasks and cancel them
450451 loop .run_until_complete (
452+ # pyrefly: ignore[bad-argument-type]
451453 asyncio .gather (
452454 * [
453455 session .stop (),
You can’t perform that action at this time.
0 commit comments