Skip to content

Commit 3ddd9a3

Browse files
committed
Minor simplification
1 parent fb875e9 commit 3ddd9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blosc2/ndarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4291,7 +4291,7 @@ def __setitem__(
42914291
value = value[()] # convert to numpy
42924292
if np.isscalar(value) or value.shape == ():
42934293
value = np.full(shape, value, dtype=self.dtype)
4294-
if isinstance(value, np.ndarray) and value.dtype != self.dtype: # handles decompressed NDArray too
4294+
if value.dtype != self.dtype: # handles decompressed NDArray too
42954295
try:
42964296
value = value.astype(self.dtype)
42974297
except ComplexWarning:

0 commit comments

Comments
 (0)