@@ -229,15 +229,20 @@ def as_shared_dtype(scalars_or_arrays, xp=np):
229
229
230
230
arrays = [asarray (x , xp = cp ) for x in scalars_or_arrays ]
231
231
else :
232
- #arrays = [asarray(x, xp=xp) for x in scalars_or_arrays]
233
- arrays = [x if isinstance (x , (int , float , complex )) else asarray (x , xp = xp ) for x in scalars_or_arrays ]
232
+ # arrays = [asarray(x, xp=xp) for x in scalars_or_arrays]
233
+ arrays = [
234
+ x if isinstance (x , (int , float , complex )) else asarray (x , xp = xp )
235
+ for x in scalars_or_arrays
236
+ ]
234
237
# Pass arrays directly instead of dtypes to result_type so scalars
235
238
# get handled properly.
236
239
# Note that result_type() safely gets the dtype from dask arrays without
237
240
# evaluating them.
238
241
out_type = dtypes .result_type (* arrays )
239
- #return [astype(x, out_type, copy=False) for x in arrays]
240
- return [astype (x , out_type , copy = False ) if hasattr (x , "dtype" ) else x for x in arrays ]
242
+ # return [astype(x, out_type, copy=False) for x in arrays]
243
+ return [
244
+ astype (x , out_type , copy = False ) if hasattr (x , "dtype" ) else x for x in arrays
245
+ ]
241
246
242
247
243
248
def broadcast_to (array , shape ):
0 commit comments