Skip to content

Commit be4fbfc

Browse files
Black re-formatting (#471)
1 parent 5547b4e commit be4fbfc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sparse/_dok.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _fancy_getitem(self, key):
393393
)
394394

395395
def _filter_by_key(self, coords, slice_key):
396-
"""Filter data coordinates to be within given slice """
396+
"""Filter data coordinates to be within given slice"""
397397
filter_arr = np.ones(coords.shape[0], dtype=bool)
398398
for coords_in_dim, sl in zip(coords.T, slice_key):
399399
filter_arr *= (

sparse/tests/test_coo_numba.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
@numba.njit
99
def identity(x):
10-
""" Pass an object through numba and back """
10+
"""Pass an object through numba and back"""
1111
return x
1212

1313

1414
def identity_constant(x):
1515
@numba.njit
1616
def get_it():
17-
""" Pass an object through numba and back as a constant """
17+
"""Pass an object through numba and back as a constant"""
1818
return x
1919

2020
return get_it()
@@ -34,7 +34,7 @@ def assert_coo_same_memory(c1, c2):
3434

3535

3636
class TestBasic:
37-
""" Test very simple construction and field access """
37+
"""Test very simple construction and field access"""
3838

3939
def test_roundtrip(self):
4040
c1 = sparse.COO(np.eye(3), fill_value=1)

0 commit comments

Comments
 (0)