Explicit windows check before sigkill for mypy

This commit is contained in:
Joe Knapper 2026-03-18 12:40:55 +00:00
parent b0d1e2626a
commit 1f43d1cc53

View file

@ -11,6 +11,7 @@ import os
import shlex
import signal
import subprocess
import sys
import threading
from typing import IO, Optional
@ -221,7 +222,8 @@ class PreviewStitcher(BaseStitcher):
except lt.exceptions.InvocationCancelledError as e:
with self._popen_lock:
if self._popen_obj is not None:
if IS_WINDOWS:
# mypy requires the check to be here
if sys.platform == "win32":
# Windows has no SIGKILL
self._popen_obj.kill()
else: