Skip to content

Commit b1ca38d

Browse files
committed
pyrefly: suppress invalid errors
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
1 parent 4e20e25 commit b1ca38d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

libkirk/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

libkirk/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)