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 f3f683c commit fbd1d7dCopy full SHA for fbd1d7d
tests/test_stats.py
@@ -96,10 +96,5 @@ def test_sum_benchmark(
96
except NotImplementedError:
97
pytest.skip("random_array not implemented for dtype")
98
99
- def sum(arr: Array[Any], axis: int | None) -> Array[Any]: # noqa: A001
100
- if hasattr(arr, "sum"):
101
- return arr.sum(axis=axis)
102
- return np.sum(arr, axis=axis) # type: ignore[arg-type]
103
-
104
- sum(arr, axis=axis) # warmup: numba compile
105
- benchmark(sum, arr, axis=axis)
+ stats.sum(arr, axis=axis) # type: ignore[arg-type] # warmup: numba compile
+ benchmark(stats.sum, arr, axis=axis)
0 commit comments