Skip to content

Commit

Permalink
[src] Fix python3.8 warning about collection.abs + v0.3.1rc1 and v0.3…
Browse files Browse the repository at this point in the history
….1rc0
  • Loading branch information
mpariente committed Aug 19, 2020
1 parent a03b151 commit 1956d35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion asteroid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .models import ConvTasNet, DPRNNTasNet, DPTNet, LSTMTasNet

project_root = str(pathlib.Path(__file__).expanduser().absolute().parent.parent)
__version__ = "0.3.0"
__version__ = "0.3.1rc1"


def show_available_models():
Expand Down
6 changes: 3 additions & 3 deletions asteroid/utils/generic_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import inspect
import collections
from collections.abc import MutableMapping
import numpy as np


Expand Down Expand Up @@ -30,7 +30,7 @@ def flatten_dict(d, parent_key="", sep="_"):
flatten-nested-dictionaries-compressing-keys?answertab=votes#tab-top
Args:
d (collections.MutableMapping): Dictionary to be flattened.
d (MutableMapping): Dictionary to be flattened.
parent_key (str): String to use as a prefix to all subsequent keys.
sep (str): String to use as a separator between two key levels.
Expand All @@ -40,7 +40,7 @@ def flatten_dict(d, parent_key="", sep="_"):
items = []
for k, v in d.items():
new_key = parent_key + sep + k if parent_key else k
if isinstance(v, collections.MutableMapping):
if isinstance(v, MutableMapping):
items.extend(flatten_dict(v, new_key, sep=sep).items())
else:
items.append((new_key, v))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

asteroid_version = "0.3.0"
asteroid_version = "0.3.1rc1"

with open("README.md", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down

0 comments on commit 1956d35

Please sign in to comment.