Skip to content

Commit

Permalink
Get Mapping from collections.abc
Browse files Browse the repository at this point in the history
  • Loading branch information
hunse committed Dec 2, 2020
1 parent f0739d6 commit 56ca221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nengo_dl/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"""

import logging
from collections import Mapping, defaultdict
from collections import defaultdict
from collections.abc import Mapping

import numpy as np
import tensorflow as tf
Expand Down
2 changes: 1 addition & 1 deletion nengo_dl/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,7 @@ def __getattribute__(self, name):
return super().__getattribute__(name)


class SimulationData(collections.Mapping):
class SimulationData(collections.abc.Mapping):
"""
Data structure used to access simulation data from the model.
Expand Down

0 comments on commit 56ca221

Please sign in to comment.