File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 66import os
77import threading
88from concurrent .futures import ThreadPoolExecutor , wait
9- from typing import TYPE_CHECKING , Any , TypeVar
9+ from typing import TYPE_CHECKING , TypeVar
1010
1111from typing_extensions import ParamSpec
1212
Original file line number Diff line number Diff line change 44import contextlib
55import pickle
66from 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
109from zarr .abc .store import (
1110 ByteRequest ,
1413 Store ,
1514 SuffixByteRequest ,
1615)
17- from zarr .core .buffer .core import BufferPrototype
1816from zarr .core .config import config
1917
2018if TYPE_CHECKING :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments