mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 19:33:45 +08:00
Add More Types for mypy (#23268)
* mypy passes * a few more * a few in manager * more types, will lint * more * simple types * events type * Update selfdrive/thermald/thermald.py * Apply suggestions from code review Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: dc96d4bee7b898172a6a15de4799af0e2d35605e
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ def set_realtime_priority(level: int) -> None:
|
||||
|
||||
def set_core_affinity(core: int) -> None:
|
||||
if not PC:
|
||||
os.sched_setaffinity(0, [core,])
|
||||
os.sched_setaffinity(0, [core,]) # type: ignore[attr-defined]
|
||||
|
||||
|
||||
def config_realtime_process(core: int, priority: int) -> None:
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ class Spinner():
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
|
||||
def update_progress(self, cur: int, total: int):
|
||||
def update_progress(self, cur: float, total: float):
|
||||
self.update(str(round(100 * cur / total)))
|
||||
|
||||
def close(self):
|
||||
|
||||
Reference in New Issue
Block a user