diff --git a/array_api_strict/_manipulation_functions.py b/array_api_strict/_manipulation_functions.py index fe4a608..5cd85d1 100644 --- a/array_api_strict/_manipulation_functions.py +++ b/array_api_strict/_manipulation_functions.py @@ -113,6 +113,8 @@ def reshape(x: Array, /, shape: tuple[int, ...], *, copy: bool | None = None) -> See its docstring for more information. """ + if not isinstance(shape, tuple): + raise TypeError(f"`shape` must be a tuple of ints; got {shape=} instead.") data = x._array if copy: