From 8a8e38704aa5b005c50c7e23e2bd925b1fc6c3c5 Mon Sep 17 00:00:00 2001 From: wout4 Date: Tue, 19 Sep 2023 13:12:29 +0200 Subject: [PATCH] remove typo --- cpmpy/expressions/variables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpmpy/expressions/variables.py b/cpmpy/expressions/variables.py index 0ce4b2cd3..aa8e66bb8 100644 --- a/cpmpy/expressions/variables.py +++ b/cpmpy/expressions/variables.py @@ -239,6 +239,7 @@ def __init__(self, lb, ub, name): self.lb = lb self.ub = ub self.name = name + self.id = uuid.uuid4() self._value = None def is_bool(self): @@ -268,7 +269,7 @@ def __repr__(self): def __hash__(self): # for backwards compatability if not hasattr(self, 'id'): - self.id = self.id = uuid.uuid4() + self.id = uuid.uuid4() return hash(self.id)