Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion text.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ def actions(self, state):

def result(self, state, action):
new_state = hashabledict(state) # copy to prevent hash issues
assert type(new_state) == hashabledict
new_state[action[0]] = action[1]
return new_state

Expand Down
8 changes: 4 additions & 4 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,19 +579,19 @@ def __hash__(self):
return hash(self.__tuplify__())

def __lt__(self, odict):
assert type(odict) is hashabledict
assert isinstance(odict, hashabledict)
return self.__tuplify__() < odict.__tuplify__()

def __gt__(self, odict):
assert type(odict) is hashabledict
assert isinstance(odict, hashabledict)
return self.__tuplify__() > odict.__tuplify__()

def __le__(self, odict):
assert type(odict) is hashabledict
assert isinstance(odict, hashabledict)
return self.__tuplify__() <= odict.__tuplify__()

def __ge__(self, odict):
assert type(odict) is hashabledict
assert isinstance(odict, hashabledict)
return self.__tuplify__() >= odict.__tuplify__()


Expand Down