X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/blobdiff_plain/e7f3590c9ffe5b309c11048f12888e18b3b82529..b3c0d23e54fe4362097a2b77c34f7bc5b492e2a0:/pypol/coordinates.py?ds=inline diff --git a/pypol/coordinates.py b/pypol/coordinates.py index 69d498e..78e8d4a 100644 --- a/pypol/coordinates.py +++ b/pypol/coordinates.py @@ -3,7 +3,7 @@ import numbers import operator from abc import ABC, abstractmethod -from collections import OrderedDict +from collections import OrderedDict, Mapping from .linexprs import Symbol @@ -75,7 +75,7 @@ class Point(Coordinates): """ def __new__(cls, coordinates=None): - if isinstance(coordinates, dict): + if isinstance(coordinates, Mapping): coordinates = coordinates.items() self = object().__new__(cls) self._coordinates = OrderedDict()