We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef7d5e commit 440106fCopy full SHA for 440106f
src/array_api_extra/_lib/_quantile.py
@@ -140,7 +140,7 @@ def _quantile_hf(
140
# Broadcast indices to match y shape except for the last axis
141
if y.ndim > 1:
142
# Create broadcast shape for indices
143
- broadcast_shape = list(y.shape[:-1]).append(1)
+ broadcast_shape = [*y.shape[:-1], 1]
144
j = xp.broadcast_to(j, broadcast_shape)
145
jp1 = xp.broadcast_to(jp1, broadcast_shape)
146
g = xp.broadcast_to(g, broadcast_shape)
0 commit comments