From 4d36304a2c70a5b6e39cdabf404fe72186fc8202 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 8 Apr 2021 10:25:37 -0700 Subject: [PATCH] Fix error from upcoming typeshed change (#2096) See python/typeshed#5190 --- src/black/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/black/__init__.py b/src/black/__init__.py index 431ee02..54d6edf 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -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) -- 2.39.5