Skip to content

Commit

Permalink
python 3.10 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
exterm committed Mar 9, 2023
1 parent d12379f commit 4d9e37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shifterator/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d9e37f

Please sign in to comment.