Skip to content

Commit 3682a6d

Browse files
committed
lint - inputs.py - fix typing warnings
1 parent 2c39230 commit 3682a6d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pori_python/ipr/inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def preprocess_msi(msi: Any) -> Sequence[Dict]:
560560
return []
561561

562562

563-
def preprocess_hrd(hrd: Any) -> Iterable[Dict]:
563+
def preprocess_hrd(hrd: Any) -> Sequence[Dict]:
564564
"""
565565
Process hrd input into preformatted signature input.
566566
HRD gets mapped to corresponding GraphKB Signature CategoryVariants.

tests/test_ipr/test_inputs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@
5050
"HLA-C*06",
5151
}
5252
EXPECTED_TMB = {TMB_SIGNATURE}
53-
EXPECTED_MSI = {MSI_MAPPING.get("microsatellite instability")["signatureName"]}
53+
EXPECTED_MSI = {MSI_MAPPING.get("microsatellite instability", {}).get("signatureName", "")}
5454
EXPECTED_HRD = {
55-
HRD_MAPPING.get("homologous recombination deficiency strong signature")["signatureName"]
55+
HRD_MAPPING.get("homologous recombination deficiency strong signature", {}).get(
56+
"signatureName", ""
57+
)
5658
}
5759

5860

0 commit comments

Comments
 (0)