Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
brokkoli71 committed Feb 15, 2025
1 parent daff61a commit 1a3a502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/zarr/core/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,6 @@ def _get_default_codecs(
| ArrayArrayCodec
| Iterable[numcodecs.abc.Codec]
| numcodecs.abc.Codec
| Literal["auto"]
| str
| None
)
Expand All @@ -3783,11 +3782,10 @@ def _get_default_codecs(
| dict[str, JSON]
| BytesBytesCodec
| numcodecs.abc.Codec
| Literal["auto"]
| str
| None
)
SerializerLike: TypeAlias = dict[str, JSON] | ArrayBytesCodec | Literal["auto"] | str
SerializerLike: TypeAlias = dict[str, JSON] | ArrayBytesCodec | str


class ShardsConfigParam(TypedDict):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ async def test_v3_chunk_encoding(
None,
numcodecs.Zstd(level=3),
(),
(numcodecs.Zstd(level=3),),
(numcodecs.Zstd(level=2),),
"zstd",
],
)
Expand All @@ -1124,7 +1124,7 @@ async def test_v3_chunk_encoding(
"auto",
None,
numcodecs.GZip(level=1),
(numcodecs.GZip(level=1)),
(numcodecs.GZip(level=2)),
"gzip",
("gzip", "zstd"),
],
Expand Down

0 comments on commit 1a3a502

Please sign in to comment.