mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Fix incompatible types in assignment
This commit is contained in:
parent
097048b89d
commit
2e589fde96
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@ import os
|
||||||
import socket
|
import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import typing
|
||||||
|
|
||||||
import core
|
import core
|
||||||
from core import APP_FILENAME
|
from core import APP_FILENAME
|
||||||
|
@ -96,8 +97,9 @@ class PosixProcess:
|
||||||
os.unlink(self.pidpath)
|
os.unlink(self.pidpath)
|
||||||
|
|
||||||
|
|
||||||
|
ProcessType = typing.Type[typing.Union[PosixProcess, WindowsProcess]]
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
RunningProcess = WindowsProcess
|
RunningProcess: ProcessType = WindowsProcess
|
||||||
else:
|
else:
|
||||||
RunningProcess = PosixProcess
|
RunningProcess = PosixProcess
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue