From 60d02accce7979feb40a71d0c081017b59e2e6a5 Mon Sep 17 00:00:00 2001 From: Dom <168790843+firestar5683@users.noreply.github.com> Date: Sun, 18 Oct 2026 00:12:40 -0500 Subject: [PATCH] Type GPS binary fixture numeric fields --- openpilot/system/qcomgpsd/tests/test_position_gps_contract.py | 2 +- prebuilt.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/system/qcomgpsd/tests/test_position_gps_contract.py b/openpilot/system/qcomgpsd/tests/test_position_gps_contract.py index c9214e508e..ce3257fe13 100644 --- a/openpilot/system/qcomgpsd/tests/test_position_gps_contract.py +++ b/openpilot/system/qcomgpsd/tests/test_position_gps_contract.py @@ -22,7 +22,7 @@ from openpilot.starpilot.ui.onroad_map import MapFeed def binary_position(axis, *, source=2, week=2400, vdop=2.): fmt, names = parse_struct(position_report) - values = dict.fromkeys(names, 0) + values: dict[str, int | float] = dict.fromkeys(names, 0) values.update({'u_PosSource': source, 'w_GpsWeekNumber': week, 'q_GpsFixTimeMs': 10000, 't_DblFinalPosLatLon[0]': math.radians(40), 't_DblFinalPosLatLon[1]': math.radians(-90), 'q_FltFinalPosAlt': 200., 'q_FltHeadingRad': 1., 'q_FltHeadingUncRad': .1, diff --git a/prebuilt.json b/prebuilt.json index 2f7409f4b6..e8c9d5a8ea 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "930837ba0fc177694202dee9f34e14500e180e414b5077f96e289d148fedc261", "schema_version": 1} +{"protected_inventory_sha256": "9b444034a6346dfce39f799cea11f019d41a5cd95d58b6e96e0e1e694be747b6", "schema_version": 1}