We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cede86 commit becabacCopy full SHA for becabac
1 file changed
src/daniel_chin_python_alt_stdlib/serial_monitor_colored.py
@@ -34,13 +34,15 @@ def __init__(self):
34
args = parser.parse_args()
35
36
self.baud_rate: int = args.baud_rate
37
- self.port_names: str = args.port_names
+ assert self.baud_rate is not None
38
+ self.port_names: list[str] = args.port_names
39
+ assert self.port_names is not None
40
41
def syncPrint(*args, **kw):
42
with printLock:
43
print(*args, **kw)
44
-def main(port_names: List[str], baud_rate: int):
45
+def main(port_names: list[str], baud_rate: int):
46
global should_exit
47
48
colorama.init()
@@ -92,6 +94,7 @@ def run(self):
92
94
def flush():
93
95
nonlocal line_birth
96
97
+ assert line_birth is not None
98
timestamp = datetime.fromtimestamp(
99
line_birth,
100
).strftime('%H:%M:%S')
0 commit comments