Skip to content

Commit 43bd853

Browse files
committed
fix: don't use dtype where it wasn't before
1 parent 57e76c9 commit 43bd853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/duck_array_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def asarray(data, xp=np, dtype=None):
267267
# np.asarray to call our NEP-18 handler; gotta hook it ourselves
268268
converted = PandasExtensionArray(as_extension_array(data, dtype))
269269
else:
270-
converted = xp.asarray(data, dtype=dtype)
270+
converted = xp.asarray(data)
271271

272272
if dtype is None or converted.dtype == dtype:
273273
return converted

0 commit comments

Comments
 (0)