mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 16:26:10 +08:00
Run mypy commit hook (#1591)
* run mypy commit hook * fix mypy errors old-commit-hash: 3d08dcc3b27936cb14c0eae63605be9a6c077380
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# type: ignore
|
||||
import time
|
||||
import math
|
||||
import atexit
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import sys
|
||||
import termios
|
||||
import time
|
||||
from termios import (BRKINT, VMIN, CS8, CSIZE, ECHO, ICANON, ICRNL, IEXTEN,
|
||||
INPCK, ISIG, ISTRIP, IXON, PARENB, VTIME)
|
||||
from termios import (BRKINT, CS8, CSIZE, ECHO, ICANON, ICRNL, IEXTEN, INPCK,
|
||||
ISIG, ISTRIP, IXON, PARENB, VMIN, VTIME)
|
||||
from typing import Any
|
||||
|
||||
# Indexes for termios list.
|
||||
IFLAG = 0
|
||||
@@ -53,7 +54,7 @@ def test(q):
|
||||
|
||||
if __name__ == '__main__':
|
||||
from multiprocessing import Process, Queue
|
||||
q = Queue()
|
||||
q : Any = Queue()
|
||||
p = Process(target=test, args=(q,))
|
||||
p.daemon = True
|
||||
p.start()
|
||||
|
||||
Reference in New Issue
Block a user