Fix error from upcoming typeshed change (#2096)

See python/typeshed#5190
This commit is contained in:
Jelle Zijlstra 2021-04-08 10:25:37 -07:00 committed by GitHub
parent 8e0803e7e5
commit 4d36304a2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -847,7 +847,7 @@ async def schedule_formatting(
): src
for src in sorted(sources)
}
pending: Iterable["asyncio.Future[bool]"] = tasks.keys()
pending = tasks.keys()
try:
loop.add_signal_handler(signal.SIGINT, cancel, pending)
loop.add_signal_handler(signal.SIGTERM, cancel, pending)