Skip to content

Commit db09c9c

Browse files
authored
Merge branch 'v3' into dependabot/pip/actions-bee7772ec3
2 parents c804689 + 19ed733 commit db09c9c

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

.deepsource.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/zarr/core/metadata/v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
compressor: numcodecs.abc.Codec | dict[str, JSON] | None = None,
5353
filters: Iterable[numcodecs.abc.Codec | dict[str, JSON]] | None = None,
5454
attributes: dict[str, JSON] | None = None,
55-
):
55+
) -> None:
5656
"""
5757
Metadata for a Zarr version 2 array.
5858
"""

src/zarr/core/metadata/v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def parse_dimension_names(data: object) -> tuple[str | None, ...] | None:
7272

7373

7474
class V3JsonEncoder(json.JSONEncoder):
75-
def __init__(self, *args: Any, **kwargs: Any):
75+
def __init__(self, *args: Any, **kwargs: Any) -> None:
7676
self.indent = kwargs.pop("indent", config.get("json_indent"))
7777
super().__init__(*args, **kwargs)
7878

src/zarr/store/zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(
5656
mode: ZipStoreAccessModeLiteral = "r",
5757
compression: int = zipfile.ZIP_STORED,
5858
allowZip64: bool = True,
59-
):
59+
) -> None:
6060
super().__init__(mode=mode)
6161

6262
if isinstance(path, str):

src/zarr/testing/strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def v2_dtypes() -> st.SearchStrategy[np.dtype]:
6060
)
6161
array_names = node_names
6262
attrs = st.none() | st.dictionaries(_attr_keys, _attr_values)
63-
paths = st.lists(node_names, min_size=1).map(lambda x: "/".join(x)) | st.just("/")
63+
paths = st.lists(node_names, min_size=1).map("/".join) | st.just("/")
6464
stores = st.builds(MemoryStore, st.just({}), mode=st.just("w"))
6565
compressors = st.sampled_from([None, "default"])
6666
zarr_formats: st.SearchStrategy[Literal[2, 3]] = st.sampled_from([2, 3])

0 commit comments

Comments
 (0)