From 2e589fde962a051a6c6965d4a6880997bf572a2f Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Wed, 14 Dec 2022 03:22:02 -0500 Subject: [PATCH] Fix incompatible types in assignment --- core/utils/processes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/utils/processes.py b/core/utils/processes.py index 92beb40e..59fe1c8e 100644 --- a/core/utils/processes.py +++ b/core/utils/processes.py @@ -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