From 97b2eda1f4cdd1a53c8dc734fad0c6961083e698 Mon Sep 17 00:00:00 2001 From: Rupert Swarbrick Date: Thu, 21 May 2026 12:12:43 +0100 Subject: [PATCH] refactor: Give proper types to Testpoint.map_test_results Signed-off-by: Rupert Swarbrick --- src/dvsim/testplan.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dvsim/testplan.py b/src/dvsim/testplan.py index dee1a95a..c15c3625 100644 --- a/src/dvsim/testplan.py +++ b/src/dvsim/testplan.py @@ -201,7 +201,7 @@ def do_substitutions(self, substitutions) -> None: self.tests = resolved_tests - def map_test_results(self, test_results) -> None: + def map_test_results(self, test_results: list[Result]) -> None: """Map test results to tests against this testpoint. Given a list of test results find the ones that match the tests listed @@ -221,7 +221,6 @@ def map_test_results(self, test_results) -> None: return for tr in test_results: - assert isinstance(tr, Result) if tr.name in self.tests: tr.mapped = True self.test_results.append(tr)