Skip to content

Commit

Permalink
Changed np.integer to np.signedinteger
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Jul 12, 2024
1 parent b10e956 commit bfb7341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slim_trees/compression_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def can_cast(value: Any, dtype: DTypeLike) -> bool:

return np.can_cast(scalar_type, dtype) or (
scalar_type.kind == "u"
and np.issubdtype(dtype, np.integer)
and np.issubdtype(dtype, np.signedinteger)
and value <= np.iinfo(dtype).max
)

Expand Down

0 comments on commit bfb7341

Please sign in to comment.