Run mypy commit hook (#1591)

* run mypy commit hook

* fix mypy errors
old-commit-hash: 3d08dcc3b27936cb14c0eae63605be9a6c077380
This commit is contained in:
Willem Melching
2020-05-28 15:05:04 -07:00
committed by GitHub
parent 9aa70600dd
commit 2b60ee9531
39 changed files with 183 additions and 207 deletions
+6 -4
View File
@@ -9,8 +9,10 @@ import shutil
import subprocess
import datetime
import textwrap
from typing import Dict, List
from selfdrive.swaglog import cloudlog, add_logentries_handler
from common.basedir import BASEDIR, PARAMS
from common.android import ANDROID
WEBCAM = os.getenv("WEBCAM") is not None
@@ -99,7 +101,7 @@ if not prebuilt:
# Read progress from stderr and update spinner
while scons.poll() is None:
try:
line = scons.stderr.readline()
line = scons.stderr.readline() # type: ignore
if line is None:
continue
line = line.rstrip()
@@ -117,7 +119,7 @@ if not prebuilt:
if scons.returncode != 0:
# Read remaining output
r = scons.stderr.read().split(b'\n')
r = scons.stderr.read().split(b'\n') # type: ignore
compile_output += r
if retry:
@@ -194,7 +196,7 @@ daemon_processes = {
"manage_athenad": ("selfdrive.athena.manage_athenad", "AthenadPid"),
}
running = {}
running: Dict[str, Process] = {}
def get_running():
return running
@@ -202,7 +204,7 @@ def get_running():
unkillable_processes = ['camerad']
# processes to end with SIGINT instead of SIGTERM
interrupt_processes = []
interrupt_processes: List[str] = []
# processes to end with SIGKILL instead of SIGTERM
kill_processes = ['sensord', 'paramsd']