Skip to content

Commit

Permalink
fix: pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Aug 19, 2024
1 parent d246610 commit 198622b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ragged/_helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def regularise_to_float(t: np.dtype, /) -> np.dtype:
if np.__version__ != "2.0.0":
# Just pass and return the input type if the numpy version is not 2.0.0
return t

if t in [np.int8, np.uint8, np.bool_, bool]:
return np.float16
elif t in [np.int16, np.uint16]:
Expand Down

0 comments on commit 198622b

Please sign in to comment.