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 @@ -1520,7 +1520,6 @@ def test_create_nodes_concurrency_limit(store: MemoryStore) -> None:
15201520 # if create_nodes is sensitive to IO latency,
15211521 # this should take (num_groups * get_latency) seconds
15221522 # otherwise, it should take only marginally more than get_latency seconds
1523-
15241523 with zarr_config .set ({"async.concurrency" : 1 }):
15251524 start = time .time ()
15261525 _ = tuple (sync_group .create_nodes (store = latency_store , nodes = groups ))
@@ -2025,9 +2024,7 @@ def test_group_members_concurrency_limit(store: MemoryStore) -> None:
20252024 # if .members is sensitive to IO latency,
20262025 # this should take (num_groups * get_latency) seconds
20272026 # otherwise, it should take only marginally more than get_latency seconds
2028- from zarr .core .config import config
2029-
2030- with config .set ({"async.concurrency" : 1 }):
2027+ with zarr_config .set ({"async.concurrency" : 1 }):
20312028 start = time .time ()
20322029 _ = group_read .members ()
20332030 elapsed = time .time () - start
You can’t perform that action at this time.
0 commit comments