Skip to content

Commit

Permalink
Use native list for typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgelmh committed Dec 18, 2024
1 parent cfdac7c commit 9f6f2ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/sim_explorer/cli/display_results.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List

from rich.console import Console
from rich.panel import Panel

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9f6f2ea

Please sign in to comment.