From aa599e7cf61fd5c6c5453ba13c3fbc2d178144de Mon Sep 17 00:00:00 2001 From: Vivien Maisonneuve Date: Fri, 11 Jul 2014 17:10:49 +0200 Subject: [PATCH 1/1] Make coordinates mandatory in Point constructor --- pypol/coordinates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypol/coordinates.py b/pypol/coordinates.py index 7923648..f76b30a 100644 --- a/pypol/coordinates.py +++ b/pypol/coordinates.py @@ -74,7 +74,7 @@ class Point(Coordinates): This class represents points in space. """ - def __new__(cls, coordinates=None): + def __new__(cls, coordinates): if isinstance(coordinates, Mapping): coordinates = coordinates.items() self = object().__new__(cls) -- 2.20.1