From c54addbb1e39b5022c5e6a28f02a6bf818415807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 20 Feb 2020 14:10:36 +0100 Subject: [PATCH] fix: Use collections.abc instead of collections --- pymispgalaxies/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pymispgalaxies/api.py b/pymispgalaxies/api.py index f158ab0..652f2a1 100644 --- a/pymispgalaxies/api.py +++ b/pymispgalaxies/api.py @@ -5,7 +5,7 @@ import json from json import JSONEncoder import os import sys -import collections +from collections.abc import Mapping from glob import glob import re from typing import List, Dict, Optional, Any, Tuple @@ -67,7 +67,7 @@ class Galaxy(): return to_return -class Galaxies(collections.Mapping): +class Galaxies(Mapping): def __init__(self, galaxies: List=[]): if not galaxies: @@ -202,7 +202,7 @@ class ClusterValue(): return to_return -class Cluster(collections.Mapping): +class Cluster(Mapping): def __init__(self, cluster: Dict[str, Any], skip_duplicates: bool=False): self.cluster = cluster @@ -266,7 +266,7 @@ class Cluster(collections.Mapping): return to_return -class Clusters(collections.Mapping): +class Clusters(Mapping): def __init__(self, clusters: List=[], skip_duplicates: bool=False): if not clusters: