Skip to content

Commit b5e08e8

Browse files
committed
lint
1 parent 78f22b9 commit b5e08e8

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/zarr/core/array.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import json
44
from asyncio import gather
5-
from collections.abc import Iterator, Sequence
65
from dataclasses import dataclass, field, replace
76
from typing import TYPE_CHECKING, Any, Literal, cast
87

@@ -71,7 +70,7 @@
7170
)
7271

7372
if TYPE_CHECKING:
74-
from collections.abc import Iterable
73+
from collections.abc import Iterable, Iterator, Sequence
7574

7675
from zarr.abc.codec import Codec, CodecPipeline
7776
from zarr.core.metadata.common import ArrayMetadata

src/zarr/store/_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from __future__ import annotations
22

3-
from zarr.core.buffer import Buffer
3+
from typing import TYPE_CHECKING
4+
5+
if TYPE_CHECKING:
6+
from zarr.core.buffer import Buffer
47

58

69
def _normalize_interval_index(

src/zarr/testing/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def test_get_many(self, store: S) -> None:
129129
)
130130
)
131131
)
132-
observed_kvs = sorted(tuple((k, b.to_bytes()) for k, b in observed_buffers))
132+
observed_kvs = sorted(tuple((k, b.to_bytes()) for k, b in observed_buffers)) # type: ignore[union-attr]
133133
expected_kvs = sorted(tuple((k, b) for k, b in zip(keys, values, strict=False)))
134134
assert observed_kvs == expected_kvs
135135

0 commit comments

Comments
 (0)