Skip to content

Commit e5da427

Browse files
authored
Change is_hashable()
There is a bug in Numpy 1.12.1 that cause the previous approach to break: numpy/numpy#8887
1 parent da2bd0d commit e5da427

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎symbulate/results.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
def is_hashable(x):
28-
return x.__hash__ is not None
28+
return hasattr(x, "__hash__")
2929

3030

3131
class Results(object):

0 commit comments

Comments
 (0)