File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments