From 9d9f96a7b4a10c3b4967852f83ec5efa9c237e98 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Tue, 25 Jun 2019 09:44:12 -0700 Subject: [PATCH] Fix mypy errors. (#911) --- black.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/black.py b/black.py index ce27653..b1e3e97 100644 --- a/black.py +++ b/black.py @@ -1,5 +1,4 @@ import asyncio -from asyncio.base_events import BaseEventLoop from concurrent.futures import Executor, ProcessPoolExecutor from datetime import datetime from enum import Enum @@ -532,7 +531,7 @@ async def schedule_formatting( write_back: WriteBack, mode: FileMode, report: "Report", - loop: BaseEventLoop, + loop: asyncio.AbstractEventLoop, executor: Executor, ) -> None: """Run formatting of `sources` in parallel using the provided `executor`. @@ -3599,7 +3598,7 @@ def cancel(tasks: Iterable[asyncio.Task]) -> None: task.cancel() -def shutdown(loop: BaseEventLoop) -> None: +def shutdown(loop: asyncio.AbstractEventLoop) -> None: """Cancel all pending tasks on `loop`, wait for them, and close the loop.""" try: if sys.version_info[:2] >= (3, 7): -- 2.39.5