From 2500f4bbab01e7405a9a665e49c031687a430208 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 7 Jan 2024 10:56:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sparse/_coo/common.py | 1 + sparse/tests/test_coo.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sparse/_coo/common.py b/sparse/_coo/common.py index e5198be2..e2587a62 100644 --- a/sparse/_coo/common.py +++ b/sparse/_coo/common.py @@ -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 diff --git a/sparse/tests/test_coo.py b/sparse/tests/test_coo.py index ec3027e1..39d2ef51 100644 --- a/sparse/tests/test_coo.py +++ b/sparse/tests/test_coo.py @@ -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)