Skip to content

Commit 221cc75

Browse files
committed
fix: np.bool -> bool
1 parent 1d13dae commit 221cc75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_dtype/test_npy/test_subarray.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TestSubarray(BaseTestZDType):
2525
valid_dtype = (
2626
np.dtype((np.float32, (2, 2))),
2727
np.dtype((np.int32, (3,))),
28-
np.dtype((np.bool, (5, 5, 5, 5))),
28+
np.dtype((bool, (5, 5, 5, 5))),
2929
)
3030
invalid_dtype = (
3131
np.dtype(np.int8),
@@ -99,7 +99,7 @@ class TestSubarray(BaseTestZDType):
9999
np.nan,
100100
np.array([np.nan, np.nan], dtype=np.float16),
101101
),
102-
(Subarray(subdtype=Bool(), shape=(1, 1)), 1.0, np.array([[True]], dtype=np.bool)),
102+
(Subarray(subdtype=Bool(), shape=(1, 1)), 1.0, np.array([[True]], dtype=bool)),
103103
# From bytes
104104
(Subarray(subdtype=Float16(), shape=(2, 2)), bytes(8), np.zeros((2, 2), dtype=np.float16)),
105105
(
@@ -133,7 +133,7 @@ class TestSubarray(BaseTestZDType):
133133
(Subarray(subdtype=Int32(), shape=(1, 2)), [[1, 2, 3]]), # wrong shape
134134
(Subarray(subdtype=Int32(), shape=(1, 2)), [1, 2]), # not nested
135135
(Subarray(subdtype=Float64(), shape=(2, 2)), None),
136-
(Subarray(subdtype=Float64(), shape=(2, 2)), "some string"),
136+
# (Subarray(subdtype=Float64(), shape=(2, 2)), "some string"),
137137
(Subarray(subdtype=Float64(), shape=(2, 2)), {"a": 1}),
138138
)
139139

0 commit comments

Comments
 (0)