Skip to content

Commit 035cf2d

Browse files
committed
MAINT: undo the array_object.py change
1 parent 33055ce commit 035cf2d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

array_api_strict/_array_object.py

-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ def _check_device(self, other):
230230
elif isinstance(other, Array):
231231
if self.device != other.device:
232232
raise ValueError(f"Arrays from two different devices ({self.device} and {other.device}) can not be combined.")
233-
else:
234-
raise TypeError(f"Cannot combine an Array with {type(other)}.")
235233

236234
# Helper function to match the type promotion rules in the spec
237235
def _promote_scalar(self, scalar):

0 commit comments

Comments
 (0)