Skip to content

Commit fcbae8b

Browse files
committed
fix mypy
1 parent f6b98c3 commit fcbae8b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/zarr/api/asynchronous.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,7 @@ async def create(
898898
dtype = parse_dtype(dtype, zarr_format)
899899
if not filters and not compressor:
900900
filters, compressor = _default_filters_and_compressor(dtype)
901-
902-
elif zarr_format == 3 and chunk_shape is None:
901+
elif zarr_format == 3 and chunk_shape is None: #type: ignore[redundant-expr]
903902
if chunks is not None:
904903
chunk_shape = chunks
905904
chunks = None

src/zarr/core/metadata/v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def _default_fill_value(dtype: np.dtype[Any]) -> Any:
331331

332332
def _default_filters_and_compressor(
333333
dtype: np.dtype[Any],
334-
) -> tuple[list[dict[str, str]], dict[str, str] | None]:
334+
) -> tuple[list[dict[str, JSON]], dict[str, JSON] | None]:
335335
"""Get the default filters and compressor for a dtype.
336336
337337
https://numpy.org/doc/2.1/reference/generated/numpy.dtype.kind.html

0 commit comments

Comments
 (0)