From 9f6f2eae3d82ac48628793cb057f71643f138b29 Mon Sep 17 00:00:00 2001 From: Mendez Date: Wed, 18 Dec 2024 08:47:48 +0100 Subject: [PATCH] Use native list for typing --- src/sim_explorer/cli/display_results.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/sim_explorer/cli/display_results.py b/src/sim_explorer/cli/display_results.py index bf6f244..c01c178 100644 --- a/src/sim_explorer/cli/display_results.py +++ b/src/sim_explorer/cli/display_results.py @@ -1,5 +1,3 @@ -from typing import List - from rich.console import Console from rich.panel import Panel @@ -69,14 +67,14 @@ def log_assertion_results(results: dict[str, list[AssertionResult]]): ) -def group_assertion_results(results: List[AssertionResult]) -> dict[str, List[AssertionResult]]: +def group_assertion_results(results: list[AssertionResult]) -> dict[str, list[AssertionResult]]: """ Group test results by case name. - :param results: List of assertion results. + :param results: list of assertion results. :return: Dictionary where keys are case names and values are lists of assertion results. """ - grouped_results: dict[str, List[AssertionResult]] = {} + grouped_results: dict[str, list[AssertionResult]] = {} for result in results: case_name = result.case if case_name and case_name not in grouped_results: