Skip to content

Commit 4c5acf1

Browse files
committed
format
1 parent 74bd774 commit 4c5acf1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/zarr/codecs/pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ async def decode_batch(
162162
) -> Iterable[NDBuffer | None]:
163163
chunk_bytes_batch: Iterable[Buffer | None]
164164
chunk_bytes_batch, chunk_specs = _unzip2(chunk_bytes_and_specs)
165-
166165
(
167166
aa_codecs_with_spec,
168167
ab_codec_with_spec,

tests/v3/test_codecs/test_sharding.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,12 @@ def test_pickle() -> None:
331331
codec = ShardingCodec(chunk_shape=(8, 8))
332332
assert pickle.loads(pickle.dumps(codec)) == codec
333333

334+
334335
@pytest.mark.parametrize("store", ("local", "memory"), indirect=["store"])
335-
@pytest.mark.parametrize("index_location", [ShardingCodecIndexLocation.start, ShardingCodecIndexLocation.end])
336-
async def test_sharding_with_empty_inner_chunk(store: Store, index_location):
336+
@pytest.mark.parametrize(
337+
"index_location", [ShardingCodecIndexLocation.start, ShardingCodecIndexLocation.end]
338+
)
339+
async def test_sharding_with_empty_inner_chunk(store: Store, index_location: ShardingCodecIndexLocation) -> None:
337340
data = np.arange(0, 16 * 16, dtype="uint32").reshape((16, 16))
338341
fill_value = 1
339342

@@ -345,7 +348,7 @@ async def test_sharding_with_empty_inner_chunk(store: Store, index_location):
345348
chunk_shape=(8, 8),
346349
dtype="uint32",
347350
fill_value=fill_value,
348-
codecs=[ShardingCodec(chunk_shape=(4, 4), index_location=index_location, index_codecs=[BytesCodec()])],
351+
codecs=[ShardingCodec(chunk_shape=(4, 4), index_location=index_location)],
349352
)
350353
data[:4, :4] = fill_value
351354
await a.setitem(..., data)

0 commit comments

Comments
 (0)