Skip to content

Commit c897ea3

Browse files
Enforce ruff/flake8-simplify rule SIM211
SIM211 Use `not ...` instead of `False if ... else True`
1 parent 52c7281 commit c897ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blosc2/schunk.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def __init__(self, chunksize=None, data=None, **kwargs):
309309
urlpath = kwargs.get("urlpath")
310310
if "contiguous" not in kwargs:
311311
# Make contiguous true for disk, else sparse (for in-memory performance)
312-
kwargs["contiguous"] = False if urlpath is None else True
312+
kwargs["contiguous"] = urlpath is not None
313313

314314
# This a private param to get an SChunk from a blosc2_schunk*
315315
sc = kwargs.pop("_schunk", None)

0 commit comments

Comments
 (0)