Skip to content

Commit 9df1c65

Browse files
committed
Remove unnecessary variable assignment
1 parent 7f42065 commit 9df1c65

File tree

1 file changed

+1
-1
lines changed
  • src/array_api_extra/_lib

1 file changed

+1
-1
lines changed

src/array_api_extra/_lib/_at.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def _op(
364364
# Vectorize the operation using boolean indexing
365365
# For non-unique indices, take the last occurrence. This requires creating
366366
# masks for x and y that create matching shapes.
367-
unique_indices, first_occurrence_mask = xp.unique_inverse(idx)
367+
unique_indices, _ = xp.unique_inverse(idx)
368368
x_mask = xp.any(xp.arange(x.shape[0])[..., None] == unique_indices, axis=-1)
369369
# Get last occurrence of each unique index
370370
cmp = unique_indices[:, None] == unique_indices[None, :]

0 commit comments

Comments
 (0)