Skip to content

Commit 0353ae9

Browse files
committed
fix kwargs typing
1 parent 151796f commit 0353ae9

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/zarr/codecs/blosc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
clevel: int = 5,
102102
shuffle: BloscShuffle | str | None = None,
103103
blocksize: int = 0,
104-
**kwargs: dict[str, Any],
104+
**kwargs: Any,
105105
) -> None:
106106
if not all(
107107
isinstance(value, dict) and value.get("must_understand") is False

src/zarr/codecs/bytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040
self,
4141
*,
4242
endian: Endian | str | None = default_system_endian,
43-
**kwargs: dict[str, Any],
43+
**kwargs: Any,
4444
) -> None:
4545
if not all(
4646
isinstance(value, dict) and value.get("must_understand") is False

src/zarr/codecs/gzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class GzipCodec(BytesBytesCodec):
3434

3535
level: int = 5
3636

37-
def __init__(self, *, level: int = 5, **kwargs: dict[str, Any]) -> None:
37+
def __init__(self, *, level: int = 5, **kwargs: Any) -> None:
3838
if not all(
3939
isinstance(value, dict) and value.get("must_understand") is False
4040
for value in kwargs.values()

src/zarr/codecs/sharding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def __init__(
343343
codecs: Iterable[Codec | dict[str, JSON]] = (BytesCodec(),),
344344
index_codecs: Iterable[Codec | dict[str, JSON]] = (BytesCodec(), Crc32cCodec()),
345345
index_location: ShardingCodecIndexLocation | str = ShardingCodecIndexLocation.end,
346-
**kwargs: dict[str, Any],
346+
**kwargs: Any,
347347
) -> None:
348348
if not all(
349349
isinstance(value, dict) and value.get("must_understand") is False

src/zarr/codecs/transpose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TransposeCodec(ArrayArrayCodec):
3232

3333
order: tuple[int, ...]
3434

35-
def __init__(self, *, order: ChunkCoordsLike, **kwargs: dict[str, Any]) -> None:
35+
def __init__(self, *, order: ChunkCoordsLike, **kwargs: Any) -> None:
3636
if not all(
3737
isinstance(value, dict) and value.get("must_understand") is False
3838
for value in kwargs.values()

src/zarr/codecs/vlen_utf8.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
@dataclass(frozen=True)
2828
class VLenUTF8Codec(ArrayBytesCodec):
29-
def __init__(self, **kwargs: dict[str, Any]) -> None:
29+
def __init__(self, **kwargs: Any) -> None:
3030
if not all(
3131
isinstance(value, dict) and value.get("must_understand") is False
3232
for value in kwargs.values()
@@ -87,7 +87,7 @@ def compute_encoded_size(self, input_byte_length: int, _chunk_spec: ArraySpec) -
8787

8888
@dataclass(frozen=True)
8989
class VLenBytesCodec(ArrayBytesCodec):
90-
def __init__(self, **kwargs: dict[str, Any]) -> None:
90+
def __init__(self, **kwargs: Any) -> None:
9191
if not all(
9292
isinstance(value, dict) and value.get("must_understand") is False
9393
for value in kwargs.values()

src/zarr/codecs/zstd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ZstdCodec(BytesBytesCodec):
4242
level: int = 0
4343
checksum: bool = False
4444

45-
def __init__(self, *, level: int = 0, checksum: bool = False, **kwargs: dict[str, Any]) -> None:
45+
def __init__(self, *, level: int = 0, checksum: bool = False, **kwargs: Any) -> None:
4646
if not all(
4747
isinstance(value, dict) and value.get("must_understand") is False
4848
for value in kwargs.values()

src/zarr/core/metadata/v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def __init__(
263263
attributes: dict[str, JSON] | None,
264264
dimension_names: Iterable[str] | None,
265265
storage_transformers: Iterable[dict[str, JSON]] | None = None,
266-
**kwargs: dict[str, Any],
266+
**kwargs: Any,
267267
) -> None:
268268
"""
269269
Because the class is a frozen dataclass, we set attributes using object.__setattr__

0 commit comments

Comments
 (0)