Skip to content

Commit

Permalink
Fix pedantic type compatibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad committed Jul 31, 2023
1 parent f13afe9 commit 871c30b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cunumeric/_ufunc/ufunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,9 @@ def _find_common_type(
scalar_types = []
array_types = []
for arr, orig_arg in zip(arrs, orig_args):
if arr.ndim == 0 and not isinstance(orig_arg, ndarray):
scalar_types.append(orig_arg)
if arr.ndim == 0:
# Make sure all scalar arguments are NumPy arrays
scalar_types.append(np.asarray(orig_arg))
else:
array_types.append(arr.dtype)

Expand Down

0 comments on commit 871c30b

Please sign in to comment.