Skip to content

Commit 93876c9

Browse files
committed
Undo hack to test dask shape
1 parent a4ebad7 commit 93876c9

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
@@ -556,7 +556,7 @@ def nunique(x: Array, /, *, xp: ModuleType | None = None) -> Array:
556556
_, counts = xp.unique_counts(x)
557557
n = _compat.size(counts)
558558
# FIXME https://github.com/data-apis/array-api-compat/pull/231
559-
if n is None or math.isnan(n): # e.g. Dask, ndonnx
559+
if n is None: # e.g. Dask, ndonnx
560560
return xp.astype(counts, xp.bool).sum()
561561
return xp.asarray(n, device=_compat.device(x))
562562

0 commit comments

Comments
 (0)