Skip to content

Commit fcbd821

Browse files
committed
Remove old commented code
1 parent 2c8a607 commit fcbd821

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

xarray/core/duck_array_ops.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ def as_shared_dtype(scalars_or_arrays, xp=np):
229229

230230
arrays = [asarray(x, xp=cp) for x in scalars_or_arrays]
231231
else:
232-
# arrays = [asarray(x, xp=xp) for x in scalars_or_arrays]
233232
arrays = [
234233
x if isinstance(x, (int, float, complex)) else asarray(x, xp=xp)
235234
for x in scalars_or_arrays
@@ -239,7 +238,6 @@ def as_shared_dtype(scalars_or_arrays, xp=np):
239238
# Note that result_type() safely gets the dtype from dask arrays without
240239
# evaluating them.
241240
out_type = dtypes.result_type(*arrays)
242-
# return [astype(x, out_type, copy=False) for x in arrays]
243241
return [
244242
astype(x, out_type, copy=False) if hasattr(x, "dtype") else x for x in arrays
245243
]

0 commit comments

Comments
 (0)