Skip to content

Commit dbdd719

Browse files
committed
Undo hack to test dask shape
1 parent a5cb116 commit dbdd719

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/array_api_extra/_lib/_funcs.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# https://github.com/scikit-learn/scikit-learn/pull/27910#issuecomment-2568023972
44
from __future__ import annotations
55

6-
import math
76
import warnings
87
from collections.abc import Sequence
98
from types import ModuleType
@@ -476,7 +475,7 @@ def nunique(x: Array, /, *, xp: ModuleType | None = None) -> Array:
476475
_, counts = xp.unique_counts(x)
477476
n = _compat.size(counts)
478477
# FIXME https://github.com/data-apis/array-api-compat/pull/231
479-
if n is None or math.isnan(n): # e.g. Dask, ndonnx
478+
if n is None: # e.g. Dask, ndonnx
480479
return xp.astype(counts, xp.bool).sum()
481480
return xp.asarray(n, device=_compat.device(x))
482481

0 commit comments

Comments
 (0)