Skip to content

Commit

Permalink
pre-commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrechykha committed Aug 19, 2024
1 parent a567704 commit a7de220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ragged/_helper_functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/ragged/blob/main/LICENSE
from __future__ import annotations

import numpy as np


def regularise_to_float(t: np.dtype, /) -> np.dtype:
if t in [np.int8, np.uint8, np.bool_, bool]:
return np.float16
Expand Down
2 changes: 1 addition & 1 deletion tests/test_spec_elementwise_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
warnings.simplefilter("ignore")

import pytest
from ragged._helper_functions import regularise_to_float

import ragged

has_complex_dtype = True
Expand Down

0 comments on commit a7de220

Please sign in to comment.