Skip to content

Commit 1e4c648

Browse files
hunhoffeclaude
andauthored
np.bool to np.bool_ (#374)
# fix: replace deprecated np.bool with np.bool_ `np.bool` was removed in NumPy 1.24. Replace the dict key in `_np_dtype_to_mlir_type_ctor` with `np.bool_`, which works across all supported NumPy versions (1.19.5+). **File:** `projects/eudsl-python-extras/mlir/extras/util.py:135` Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 411f438 commit 1e4c648

File tree

1 file changed

+1
-1
lines changed
  • projects/eudsl-python-extras/mlir/extras

1 file changed

+1
-1
lines changed

projects/eudsl-python-extras/mlir/extras/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def find(op: Operation):
132132

133133

134134
_np_dtype_to_mlir_type_ctor = {
135-
np.bool: T.bool,
135+
np.bool_: T.bool,
136136
np.int8: T.i8,
137137
np.int16: T.i16,
138138
np.int32: T.i32,

0 commit comments

Comments
 (0)