Skip to content

Commit 41ef491

Browse files
committed
Merge branch 'array-api' of github.com:Blosc/python-blosc2 into array-api
2 parents f99b298 + fb00e65 commit 41ef491

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/blosc2/lazyexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,7 @@ def find_args(expr):
28042804

28052805
return value, expression[idx:idx2]
28062806

2807-
def _compute_expr(self, item, kwargs): # noqa: C901
2807+
def _compute_expr(self, item, kwargs):
28082808
if any(method in self.expression for method in reducers):
28092809
# We have reductions in the expression (probably coming from a string lazyexpr)
28102810
# Also includes slice

src/blosc2/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def jit(func=None, *, out=None, disable=False, **kwargs): # noqa: C901
657657
[5 5 5 5]
658658
"""
659659

660-
def decorator(func): # noqa: C901
660+
def decorator(func):
661661
if disable:
662662
return func
663663

src/blosc2/schunk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ def __dealloc__(self):
14701470
super().__dealloc__()
14711471

14721472

1473-
def open( # noqa: C901
1473+
def open(
14741474
urlpath: str | pathlib.Path | blosc2.URLPath, mode: str = "a", offset: int = 0, **kwargs: dict
14751475
) -> blosc2.SChunk | blosc2.NDArray | blosc2.C2Array | blosc2.LazyArray | blosc2.Proxy:
14761476
"""Open a persistent :ref:`SChunk`, :ref:`NDArray`, a remote :ref:`C2Array`

tests/ndarray/test_lazyexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def test_functions(function, dtype_fixture, shape_fixture):
365365
# ("scalar", "scalar") # Not supported by LazyExpr
366366
],
367367
)
368-
def test_arctan2_pow(urlpath, shape_fixture, dtype_fixture, function, value1, value2): # noqa: C901
368+
def test_arctan2_pow(urlpath, shape_fixture, dtype_fixture, function, value1, value2):
369369
nelems = np.prod(shape_fixture)
370370
if urlpath is None:
371371
urlpath1 = urlpath2 = urlpath_save = None

tests/test_open.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
(True, "a", "c"),
4040
],
4141
)
42-
def test_open(contiguous, urlpath, cparams, dparams, nchunks, chunk_nitems, dtype, mode, mmap_mode): # noqa: C901
42+
def test_open(contiguous, urlpath, cparams, dparams, nchunks, chunk_nitems, dtype, mode, mmap_mode):
4343
if os.name == "nt" and mmap_mode == "c":
4444
pytest.skip("Cannot test mmap_mode 'c' on Windows")
4545

tests/test_prefilters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
),
4949
],
5050
)
51-
def test_fillers( # noqa: C901
51+
def test_fillers(
5252
contiguous, urlpath, cparams, dparams, nchunks, nelem, func, op_dtype, op2_dtype, schunk_dtype, offset
5353
):
5454
blosc2.remove_urlpath(urlpath)

0 commit comments

Comments
 (0)