Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sparse/numba_backend/_coo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def _replace_nan(array, value):

def nanreduce(x, method, identity=None, axis=None, keepdims=False, **kwargs):
"""
Performs an `NaN` skipping reduction on this array. See the documentation
Performs a `NaN` skipping reduction on this array. See the documentation
on [`sparse.COO.reduce`][] for examples.

Parameters
Expand Down
2 changes: 1 addition & 1 deletion sparse/numba_backend/_sparse_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, shape, fill_value=None):
shape = (shape,)

if not all(isinstance(sh, Integral) and int(sh) >= 0 for sh in shape):
raise ValueError("shape must be an non-negative integer or a tuple of non-negative integers.")
raise ValueError("shape must be a non-negative integer or a tuple of non-negative integers.")

self.shape = tuple(int(sh) for sh in shape)

Expand Down
Loading