Skip to content

Commit a86f79c

Browse files
Multiple imports for an import name
1 parent 213863b commit a86f79c

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/zarr/core/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77
import threading
88
from concurrent.futures import ThreadPoolExecutor, wait
9-
from typing import TYPE_CHECKING, Any, TypeVar
9+
from typing import TYPE_CHECKING, TypeVar
1010

1111
from typing_extensions import ParamSpec
1212

src/zarr/storage/_obstore.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import contextlib
55
import pickle
66
from collections import defaultdict
7-
from collections.abc import Iterable
8-
from typing import TYPE_CHECKING, Any, TypedDict
7+
from typing import TYPE_CHECKING, TypedDict
98

109
from zarr.abc.store import (
1110
ByteRequest,
@@ -14,7 +13,6 @@
1413
Store,
1514
SuffixByteRequest,
1615
)
17-
from zarr.core.buffer.core import BufferPrototype
1816
from zarr.core.config import config
1917

2018
if TYPE_CHECKING:

tests/test_group.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,6 @@ def test_create_nodes_concurrency_limit(store: MemoryStore) -> None:
15191519
# if create_nodes is sensitive to IO latency,
15201520
# this should take (num_groups * get_latency) seconds
15211521
# otherwise, it should take only marginally more than get_latency seconds
1522-
15231522
with zarr_config.set({"async.concurrency": 1}):
15241523
start = time.time()
15251524
_ = tuple(sync_group.create_nodes(store=latency_store, nodes=groups))
@@ -2024,9 +2023,7 @@ def test_group_members_concurrency_limit(store: MemoryStore) -> None:
20242023
# if .members is sensitive to IO latency,
20252024
# this should take (num_groups * get_latency) seconds
20262025
# otherwise, it should take only marginally more than get_latency seconds
2027-
from zarr.core.config import config
2028-
2029-
with config.set({"async.concurrency": 1}):
2026+
with zarr_config.set({"async.concurrency": 1}):
20302027
start = time.time()
20312028
_ = group_read.members()
20322029
elapsed = time.time() - start

0 commit comments

Comments
 (0)