Skip to content

Commit 41ad0bb

Browse files
committed
nit
1 parent 2b18097 commit 41ad0bb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/array_api_extra/_funcs.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,8 @@ def get(
693693
copy: bool | None = True,
694694
xp: ModuleType | None = None,
695695
) -> Array:
696-
"""Return ``xp.asarray(x[idx])``. In addition to plain ``__getitem__``, this allows
697-
ensuring that the output is either a copy or a view; it also allows passing
698-
keyword arguments to the backend.
696+
"""Return ``xp.asarray(x[idx])``. In addition to plain ``__getitem__``,
697+
this allows ensuring that the output is either a copy or a view
699698
"""
700699
self._check_args(copy=copy)
701700
x = self.x
@@ -782,7 +781,7 @@ def _update_common(
782781
writeable = is_writeable_array(x)
783782
if not writeable:
784783
# sparse crashes here
785-
msg = f"Array {x} has no `at` method and is read-only"
784+
msg = f"Can't update read-only array {x}"
786785
raise ValueError(msg)
787786

788787
return None, x

0 commit comments

Comments
 (0)