Skip to content

Commit 2c9b31b

Browse files
committed
Fix lint errors: remove parentheses, type kwargs.
1 parent ad3e2ed commit 2c9b31b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/zarr/core/codec_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def read_batch(
268268
if config.get("codec_pipeline.fill_missing_chunks", True):
269269
out[out_selection] = fill_value_or_default(chunk_spec)
270270
else:
271-
raise MissingChunkError()
271+
raise MissingChunkError
272272
else:
273273
chunk_bytes_batch = await concurrent_map(
274274
[(byte_getter, array_spec.prototype) for byte_getter, array_spec, *_ in batch_info],
@@ -295,7 +295,7 @@ async def read_batch(
295295
if config.get("codec_pipeline.fill_missing_chunks", True):
296296
out[out_selection] = fill_value_or_default(chunk_spec)
297297
else:
298-
raise MissingChunkError()
298+
raise MissingChunkError
299299

300300
def _merge_chunk_array(
301301
self,

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class NewCodec2(BytesCodec):
329329
],
330330
ids=["partial_decode", "full_decode"],
331331
)
332-
def test_config_fill_missing_chunks(store: Store, kwargs: dict) -> None:
332+
def test_config_fill_missing_chunks(store: Store, kwargs: dict[str, Any]) -> None:
333333
arr = zarr.create_array(
334334
store=store,
335335
shape=(4, 4),

0 commit comments

Comments
 (0)