Skip to content

Commit 5e497b3

Browse files
committed
types
1 parent ecfaa8c commit 5e497b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_stats.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def test_sum_benchmark(
9696
except NotImplementedError:
9797
pytest.skip("random_array not implemented for dtype")
9898

99-
def sum(arr, axis):
100-
if hasattr(arr, sum):
99+
def sum(arr: Array[Any], axis: int | None) -> Array[Any]: # noqa: A001
100+
if hasattr(arr, "sum"):
101101
return arr.sum(axis=axis)
102-
return np.sum(arr, axis=axis)
102+
return np.sum(arr, axis=axis) # type: ignore[arg-type]
103103

104-
sum(arr, axis=axis) # type: ignore[arg-type] # warmup: numba compile
104+
sum(arr, axis=axis) # warmup: numba compile
105105
benchmark(sum, arr, axis=axis)

0 commit comments

Comments
 (0)