Skip to content

Commit da30048

Browse files
committed
Avoid using deprecated np.bool
1 parent 7ec268f commit da30048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xobjects/hybrid_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def default(self, obj):
8888
return obj.tolist()
8989
elif np.issubdtype(type(obj), np.integer):
9090
return int(obj)
91-
elif isinstance(obj, np.bool):
91+
elif isinstance(obj, (np.bool_)):
9292
return bool(obj)
9393
else:
9494
return json.JSONEncoder.default(self, obj)

0 commit comments

Comments
 (0)