From f4f49f0baa42eef9e072195893fd621f6633e12d Mon Sep 17 00:00:00 2001 From: rhliang Date: Wed, 13 Aug 2025 17:25:58 -0700 Subject: [PATCH] Cleaned up some mypy/ruff complaints. --- tests/hla_algorithm_test.py | 2 +- tests/interpret_from_json_lib_test.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/hla_algorithm_test.py b/tests/hla_algorithm_test.py index 0ff5e70..4d68e7e 100644 --- a/tests/hla_algorithm_test.py +++ b/tests/hla_algorithm_test.py @@ -4,7 +4,7 @@ from io import StringIO from pathlib import Path from typing import Optional, cast -from unittest.mock import MagicMock, _Call, patch +from unittest.mock import MagicMock, _Call import numpy as np import pytest diff --git a/tests/interpret_from_json_lib_test.py b/tests/interpret_from_json_lib_test.py index ef2cc88..6befef8 100644 --- a/tests/interpret_from_json_lib_test.py +++ b/tests/interpret_from_json_lib_test.py @@ -377,9 +377,7 @@ def test_hla_match_adaptor_from_match_details( raw_mismatches: list[HLAMismatch], raw_expected_result: list[str], ): - match_details: HLAMatchDetails = HLAMatchDetails( - mismatch_count=len(raw_mismatches), mismatches=raw_mismatches - ) + match_details: HLAMatchDetails = HLAMatchDetails(mismatches=raw_mismatches) expected_result: HLAMatchAdaptor = HLAMatchAdaptor( mismatch_count=len(raw_expected_result), mismatches=raw_expected_result )