From 4d9e37f3719668c53d6678c4571583beb7c0b0b7 Mon Sep 17 00:00:00 2001 From: Philip Mueller Date: Thu, 9 Mar 2023 16:53:38 -0500 Subject: [PATCH] python 3.10 compat --- shifterator/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shifterator/helper.py b/shifterator/helper.py index c68730d..8a4652e 100755 --- a/shifterator/helper.py +++ b/shifterator/helper.py @@ -153,7 +153,7 @@ def get_score_dictionary(scores): type2score: dict Keys are types and values are scores of those types """ - if isinstance(scores, collections.Mapping): + if isinstance(scores, collections.abc.Mapping): return scores.copy(), None # Else, load scores from predefined score file in shifterator