From 4fd54dccaf80cb28e087bc2858f15aae80a19f83 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 23 Nov 2023 09:52:09 +1100 Subject: [PATCH] autotest: correct python function typing bug around Dict vs dict --- Tools/autotest/vehicle_test_suite.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 2c65dce31c466..caa4b0b711883 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -20,6 +20,8 @@ import traceback from datetime import datetime from typing import List +from typing import Tuple +from typing import Dict import importlib.util import pexpect @@ -13803,7 +13805,7 @@ def autotest(self, tests=None, allow_skips=True, step_name=None): return len(self.fail_list) == 0 - def create_junit_report(self, test_name: str, results: List[Result], skip_list: list[tuple[Test, dict[str, str]]]) -> None: + def create_junit_report(self, test_name: str, results: List[Result], skip_list: List[Tuple[Test, Dict[str, str]]]) -> None: """Generate Junit report from the autotest results""" from junitparser import TestCase, TestSuite, JUnitXml, Skipped, Failure frame = self.vehicleinfo_key()