We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33055ce commit 035cf2dCopy full SHA for 035cf2d
array_api_strict/_array_object.py
@@ -230,8 +230,6 @@ def _check_device(self, other):
230
elif isinstance(other, Array):
231
if self.device != other.device:
232
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)}.")
235
236
# Helper function to match the type promotion rules in the spec
237
def _promote_scalar(self, scalar):
0 commit comments