Skip to content

Commit eedea84

Browse files
committed
revert changes to store imports
1 parent bb28d1d commit eedea84

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/zarr/abc/store.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
from itertools import starmap
77
from typing import TYPE_CHECKING, Protocol, runtime_checkable
88

9+
from zarr.core.buffer.core import default_buffer_prototype
10+
from zarr.core.common import concurrent_map
11+
from zarr.core.config import config
12+
913
if TYPE_CHECKING:
1014
from collections.abc import AsyncGenerator, AsyncIterator, Iterable
1115
from types import TracebackType
@@ -434,7 +438,6 @@ async def getsize(self, key: str) -> int:
434438
# Note to implementers: this default implementation is very inefficient since
435439
# it requires reading the entire object. Many systems will have ways to get the
436440
# size of an object without reading it.
437-
from zarr.core.buffer.core import default_buffer_prototype
438441

439442
value = await self.get(key, prototype=default_buffer_prototype())
440443
if value is None:
@@ -474,8 +477,6 @@ async def getsize_prefix(self, prefix: str) -> int:
474477
# on to getting sizes. Ideally we would overlap those two, which should
475478
# improve tail latency and might reduce memory pressure (since not all keys
476479
# would be in memory at once).
477-
from zarr.core.common import concurrent_map
478-
from zarr.core.config import config
479480

480481
keys = [(x,) async for x in self.list_prefix(prefix)]
481482
limit = config.get("async.concurrency")

0 commit comments

Comments
 (0)