Skip to content

Commit 16c64e1

Browse files
ivorbosloperm-mohr
andauthored
Update vecorel_cli/encoding/geojson.py
Co-authored-by: Matthias Mohr <matthias@mohr.ws>
1 parent d136423 commit 16c64e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

vecorel_cli/encoding/geojson.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ def default(self, obj):
336336
return obj.tolist()
337337
elif isinstance(obj, set):
338338
return list(obj)
339-
elif isinstance(obj, np.integer):
340-
return int(obj)
341-
elif isinstance(obj, np.bool):
342-
return bool(obj)
339+
elif isinstance(obj, np.generic):
340+
return obj.item()
343341
else:
344342
return super().default(obj)

0 commit comments

Comments
 (0)