From: Jelle Zijlstra Date: Thu, 8 Apr 2021 17:25:37 +0000 (-0700) Subject: Fix error from upcoming typeshed change (#2096) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/4d36304a2c70a5b6e39cdabf404fe72186fc8202?hp=8e0803e7e5acabdd28b80258f15d8aebf11fbb4c Fix error from upcoming typeshed change (#2096) See python/typeshed#5190 --- 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)