From 2a89b02a3bbe59ecc019156d576542d2dc4ab6a3 Mon Sep 17 00:00:00 2001 From: Yasemin Bridges Date: Tue, 5 Nov 2024 16:41:56 +0000 Subject: [PATCH] remove kw argument from dataclass so compatible with python3.9 --- src/pheval/post_processing/post_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pheval/post_processing/post_processing.py b/src/pheval/post_processing/post_processing.py index 0d1fbc83..4c10ddf3 100644 --- a/src/pheval/post_processing/post_processing.py +++ b/src/pheval/post_processing/post_processing.py @@ -99,14 +99,14 @@ class PhEvalVariantResult(PhEvalResult): grouping_id: str = field(default=None) -@dataclass(kw_only=True) +@dataclass class RankedPhEvalVariantResult(PhEvalVariantResult): """PhEval variant result with corresponding rank Args: rank (int): The rank for the result entry """ - rank: int + rank: int = 0 @staticmethod def from_variant_result(pheval_variant_result: PhEvalVariantResult, rank: int):