Skip to content

Commit

Permalink
fix missing import and fix an additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Jun 4, 2024
1 parent faa6396 commit 17de339
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/zarr/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from collections.abc import Iterable
from dataclasses import dataclass, field, replace
from enum import Enum
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING, cast

if TYPE_CHECKING:
from typing import Any

import numpy as np
import numpy.typing as npt
Expand Down
3 changes: 2 additions & 1 deletion tests/v3/test_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ def test_transpose_non_self_inverse(store: Store, order):
chunk_shape=data.shape,
dtype=data.dtype,
fill_value=0,
codecs=[TransposeCodec(order=order), BytesCodec()],
compressor=BytesCodec(),
filters=(TransposeCodec(order=order),),
)
a[:, :] = data
read_data = a[:, :]
Expand Down

0 comments on commit 17de339

Please sign in to comment.