Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and mtsokol committed Jan 7, 2024
1 parent a1a6aee commit ace0cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions sparse/_coo/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ def clip(a, a_min=None, a_max=None, out=None):

# Array API set functions


class UniqueCountsResult(NamedTuple):
values: np.ndarray
counts: np.ndarray
Expand Down
4 changes: 1 addition & 3 deletions sparse/tests/test_coo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1773,9 +1773,7 @@ def test_unique_values(self, arr, fill_value):

np.testing.assert_equal(result, expected)

@pytest.mark.parametrize(
"func", [sparse.unique_counts, sparse.unique_values]
)
@pytest.mark.parametrize("func", [sparse.unique_counts, sparse.unique_values])
def test_input_validation(self, func):
with pytest.raises(ValueError, match=r"Only COO arrays are supported"):
func(self.arr)

0 comments on commit ace0cda

Please sign in to comment.