Skip to content

Commit 825cdc4

Browse files
committed
some pre-commit fixes
1 parent 85027c3 commit 825cdc4

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/zarr/storage/_latency.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import asyncio
44

5-
from zarr.storage._wrapper import WrapperStore
65
from zarr.abc.store import ByteRequest, Store
76
from zarr.core.buffer import Buffer, BufferPrototype
7+
from zarr.storage._wrapper import WrapperStore
88

99

1010
class LatencyStore(WrapperStore[Store]):
@@ -13,11 +13,11 @@ class LatencyStore(WrapperStore[Store]):
1313
adds latency to the `set` and `get` methods. This can be used for
1414
performance testing.
1515
16-
Particularly useful for testing downstream applications which will
17-
interact with a high-latency zarr store implementation,
18-
such as one which read from or writes to remote object storage.
19-
For example, by using this class to wrap a ``MemoryStore`` instance,
20-
you can (crudely) simulate the latency of reading and writing from S3
16+
Particularly useful for testing downstream applications which will
17+
interact with a high-latency zarr store implementation,
18+
such as one which read from or writes to remote object storage.
19+
For example, by using this class to wrap a ``MemoryStore`` instance,
20+
you can (crudely) simulate the latency of reading and writing from S3
2121
without having to actually use the network, or a mock like MinIO.
2222
2323
Parameters

src/zarr/testing/store.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from abc import abstractmethod
55
from typing import TYPE_CHECKING, Generic, TypeVar
66

7-
87
if TYPE_CHECKING:
98
from typing import Any
109

tests/test_group.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@
4747
ZarrDeprecationWarning,
4848
ZarrUserWarning,
4949
)
50-
from zarr.storage import LocalStore, MemoryStore, StorePath, ZipStore
50+
from zarr.storage import LatencyStore, LocalStore, MemoryStore, StorePath, ZipStore
5151
from zarr.storage._common import make_store_path
5252
from zarr.storage._utils import _join_paths, normalize_path
53-
from zarr.storage import LatencyStore
5453

5554
from .conftest import meta_from_array, parse_store
5655

0 commit comments

Comments
 (0)