Skip to content

Commit bb3e4ea

Browse files
committed
Review edits
1 parent 2198a35 commit bb3e4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_extra/_lib/_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def one_hot(
386386
xp: ModuleType,
387387
) -> Array: # numpydoc ignore=PR01,RT01
388388
"""See docstring in `array_api_extra._delegation.py`."""
389-
x_size = x.size
389+
x_size = _compat.size(x)
390390
if x_size is None: # pragma: no cover
391391
# This cannot be tested because there is no way to create an array with abstract
392392
# size today. However, it is blocked for the sake of type-checking and

0 commit comments

Comments
 (0)