File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,6 @@ def actions(self, state):
399
399
400
400
def result (self , state , action ):
401
401
new_state = hashabledict (state ) # copy to prevent hash issues
402
- assert type (new_state ) == hashabledict
403
402
new_state [action [0 ]] = action [1 ]
404
403
return new_state
405
404
Original file line number Diff line number Diff line change @@ -579,19 +579,19 @@ def __hash__(self):
579
579
return hash (self .__tuplify__ ())
580
580
581
581
def __lt__ (self , odict ):
582
- assert type (odict ) is hashabledict
582
+ assert isinstance (odict , hashabledict )
583
583
return self .__tuplify__ () < odict .__tuplify__ ()
584
584
585
585
def __gt__ (self , odict ):
586
- assert type (odict ) is hashabledict
586
+ assert isinstance (odict , hashabledict )
587
587
return self .__tuplify__ () > odict .__tuplify__ ()
588
588
589
589
def __le__ (self , odict ):
590
- assert type (odict ) is hashabledict
590
+ assert isinstance (odict , hashabledict )
591
591
return self .__tuplify__ () <= odict .__tuplify__ ()
592
592
593
593
def __ge__ (self , odict ):
594
- assert type (odict ) is hashabledict
594
+ assert isinstance (odict , hashabledict )
595
595
return self .__tuplify__ () >= odict .__tuplify__ ()
596
596
597
597
You can’t perform that action at this time.
0 commit comments