From 18a1c68b46c58f2ff6d4efe2e26698d45e0fbc6a Mon Sep 17 00:00:00 2001 From: Alex Zwanenburg Date: Wed, 27 Mar 2024 10:38:14 +0100 Subject: [PATCH] Fix an error due to Unpack being unavailable in python 3.10. --- mirp/settings/generic.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mirp/settings/generic.py b/mirp/settings/generic.py index 4907d9d2..cf1b2f23 100644 --- a/mirp/settings/generic.py +++ b/mirp/settings/generic.py @@ -1,5 +1,9 @@ import copy -from typing import Unpack +import sys +if sys.version_info >= (3, 11): + from typing import Unpack +else: + from typing_extensions import Unpack from mirp.settings.feature_parameters import FeatureExtractionSettingsClass from mirp.settings.general_parameters import GeneralSettingsClass