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
+2
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# type: ignore
import argparse
import numpy as np
from collections import defaultdict, deque
+2
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# type: ignore
import cereal.messaging as messaging
from cereal.services import service_list
+1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# type: ignore
import psutil
import time
import os
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# type: ignore
import sys
from tools.lib.logreader import MultiLogIterator
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# type: ignore
import os
import argparse
import signal
@@ -28,7 +30,7 @@ if __name__ == "__main__":
stats = defaultdict(lambda: {'err': 0, "cnt": 0, "=": 0, "+": 0, "-": 0})
cnt = 0
total_error = 0
while messaging.recv_one(carControl):
sm.update()
msg_cnt += 1
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# type: ignore
import os
import argparse
import struct
+1
View File
@@ -1,4 +1,5 @@
#! /usr/bin/env python
# type: ignore
import matplotlib.pyplot as plt
from selfdrive.controls.lib.lateral_mpc import libmpc_py
from selfdrive.controls.lib.drive_helpers import MPC_COST_LAT
+2
View File
@@ -1,4 +1,6 @@
#! /usr/bin/env python
# type: ignore
import numpy as np
from collections import OrderedDict
import matplotlib.pyplot as plt
+1
View File
@@ -1,4 +1,5 @@
#! /usr/bin/env python
# type: ignore
import numpy as np
import matplotlib.pyplot as plt
from selfdrive.controls.lib.longitudinal_mpc import libmpc_py
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
# type: ignore
import argparse
import os
import traceback