import operator
from abc import ABC, abstractmethod
-from collections import OrderedDict
+from collections import OrderedDict, Mapping
from .linexprs import Symbol
"""
def __new__(cls, coordinates=None):
- if isinstance(coordinates, dict):
+ if isinstance(coordinates, Mapping):
coordinates = coordinates.items()
self = object().__new__(cls)
self._coordinates = OrderedDict()