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] committed Jan 4, 2024
1 parent 1a8b8d3 commit 658d806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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 UniqueAllResult(NamedTuple):
values: np.ndarray
indices: np.ndarray
Expand Down
8 changes: 1 addition & 7 deletions sparse/tests/test_coo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1796,13 +1796,7 @@ def test_unique_values(self, arr):
np.testing.assert_equal(result, expected)

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

0 comments on commit 658d806

Please sign in to comment.