Skip to content

Commit

Permalink
Removing np.float_ to be compatible with np v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp1985 committed Aug 29, 2024
1 parent 6c73c10 commit 86173af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parakeet/sample/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ def default(self, obj):
),
):
return int(obj)
elif isinstance(obj, (np.float_, np.float16, np.float32, np.float64)):
elif isinstance(obj, (np.float16, np.float32, np.float64)):
return float(obj)
elif isinstance(obj, (np.ndarray,)):
return obj.tolist()
Expand Down

0 comments on commit 86173af

Please sign in to comment.