Fix incompatible types in assignment

This commit is contained in:
Labrys of Knossos 2022-12-14 03:22:02 -05:00
commit 2e589fde96

View file

@ -4,6 +4,7 @@ import os
import socket
import subprocess
import sys
import typing
import core
from core import APP_FILENAME
@ -96,8 +97,9 @@ class PosixProcess:
os.unlink(self.pidpath)
ProcessType = typing.Type[typing.Union[PosixProcess, WindowsProcess]]
if os.name == 'nt':
RunningProcess = WindowsProcess
RunningProcess: ProcessType = WindowsProcess
else:
RunningProcess = PosixProcess