diff --git a/src/zarr/core/sync.py b/src/zarr/core/sync.py index d9b4839e8e..ffb04e764d 100644 --- a/src/zarr/core/sync.py +++ b/src/zarr/core/sync.py @@ -6,7 +6,7 @@ import os import threading from concurrent.futures import ThreadPoolExecutor, wait -from typing import TYPE_CHECKING, Any, TypeVar +from typing import TYPE_CHECKING, TypeVar from typing_extensions import ParamSpec diff --git a/src/zarr/storage/_obstore.py b/src/zarr/storage/_obstore.py index 8c2469747d..53f82f8899 100644 --- a/src/zarr/storage/_obstore.py +++ b/src/zarr/storage/_obstore.py @@ -4,8 +4,7 @@ import contextlib import pickle from collections import defaultdict -from collections.abc import Iterable -from typing import TYPE_CHECKING, Any, TypedDict +from typing import TYPE_CHECKING, TypedDict from zarr.abc.store import ( ByteRequest, @@ -14,7 +13,6 @@ Store, SuffixByteRequest, ) -from zarr.core.buffer.core import BufferPrototype from zarr.core.config import config if TYPE_CHECKING: diff --git a/tests/test_group.py b/tests/test_group.py index b4dace2568..7cf29c30d9 100644 --- a/tests/test_group.py +++ b/tests/test_group.py @@ -1519,7 +1519,6 @@ def test_create_nodes_concurrency_limit(store: MemoryStore) -> None: # if create_nodes is sensitive to IO latency, # this should take (num_groups * get_latency) seconds # otherwise, it should take only marginally more than get_latency seconds - with zarr_config.set({"async.concurrency": 1}): start = time.time() _ = tuple(sync_group.create_nodes(store=latency_store, nodes=groups)) @@ -2024,9 +2023,7 @@ def test_group_members_concurrency_limit(store: MemoryStore) -> None: # if .members is sensitive to IO latency, # this should take (num_groups * get_latency) seconds # otherwise, it should take only marginally more than get_latency seconds - from zarr.core.config import config - - with config.set({"async.concurrency": 1}): + with zarr_config.set({"async.concurrency": 1}): start = time.time() _ = group_read.members() elapsed = time.time() - start