From 87cd9c5194670c96b924ceadced85bcaad3092da Mon Sep 17 00:00:00 2001 From: Dom <168790843+firestar5683@users.noreply.github.com> Date: Fri, 13 Nov 2026 14:08:14 -0600 Subject: [PATCH] Type Model Laboratory AST statements explicitly --- openpilot/starpilot/models/tests/test_laboratory_runner.py | 2 +- prebuilt.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/starpilot/models/tests/test_laboratory_runner.py b/openpilot/starpilot/models/tests/test_laboratory_runner.py index 45a52fd71f..6cf597cd29 100644 --- a/openpilot/starpilot/models/tests/test_laboratory_runner.py +++ b/openpilot/starpilot/models/tests/test_laboratory_runner.py @@ -63,7 +63,7 @@ class TestLaboratoryFrame(unittest.TestCase): import ast source = Path(__file__).resolve().parents[3] / "selfdrive/modeld/modeld.py" main = next(node for node in ast.parse(source.read_text()).body if isinstance(node, ast.FunctionDef) and node.name == "main") - assignments = [node for node in ast.walk(main) if isinstance(node, ast.Assign) and + assignments: list[ast.stmt] = [node for node in ast.walk(main) if isinstance(node, ast.Assign) and any(isinstance(target, ast.Name) and target.id in ("bufs", "transforms") for target in node.targets)] caller = compile(ast.fix_missing_locations(ast.Module(body=assignments, type_ignores=[])), str(source), "exec") pair = make_pair() diff --git a/prebuilt.json b/prebuilt.json index c1a95cbee3..a87cb1f3d2 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "02c323c4215781c99d9860296bcf85ef5ce52e47772a862f4099b8050696b824", "schema_version": 1} +{"protected_inventory_sha256": "2d49f13787280f5b94d0e09bdf4d10509060bbc4cb2a35ddcf5ad88864a19bb5", "schema_version": 1}