diff --git a/flamenco_worker/cli.py b/flamenco_worker/cli.py index 3d3cceaff16313a3a52666fa53d396eb60c8f2f8..80055856b6c865b740dada455ca2df500feb7f64 100644 --- a/flamenco_worker/cli.py +++ b/flamenco_worker/cli.py @@ -291,8 +291,9 @@ def construct_asyncio_loop() -> asyncio.AbstractEventLoop: # not support subprocesses. ProactorEventLoop should be used instead. # Source: https://docs.python.org/3.5/library/asyncio-subprocess.html if platform.system() == 'Windows': - if not isinstance(loop, asyncio.ProactorEventLoop): - loop = asyncio.ProactorEventLoop() + # Silly MyPy doesn't understand this only runs on Windows. + if not isinstance(loop, asyncio.ProactorEventLoop): # type: ignore + loop = asyncio.ProactorEventLoop() # type: ignore asyncio.set_event_loop(loop) return loop