Skip to content

Commit

Permalink
remove typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout4 committed Sep 19, 2023
1 parent 52cd76d commit 8a8e387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpmpy/expressions/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 8a8e387

Please sign in to comment.