File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -693,9 +693,8 @@ def get(
693
693
copy : bool | None = True ,
694
694
xp : ModuleType | None = None ,
695
695
) -> 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
699
698
"""
700
699
self ._check_args (copy = copy )
701
700
x = self .x
@@ -782,7 +781,7 @@ def _update_common(
782
781
writeable = is_writeable_array (x )
783
782
if not writeable :
784
783
# 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 } "
786
785
raise ValueError (msg )
787
786
788
787
return None , x
You can’t perform that action at this time.
0 commit comments