From 198622b06f39f8ab4d99a521095b716e77584f1d Mon Sep 17 00:00:00 2001 From: Ianna Osborne Date: Mon, 19 Aug 2024 13:02:46 +0200 Subject: [PATCH] fix: pre-commit --- src/ragged/_helper_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ragged/_helper_functions.py b/src/ragged/_helper_functions.py index 9446243..451aa3c 100644 --- a/src/ragged/_helper_functions.py +++ b/src/ragged/_helper_functions.py @@ -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]: