Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 0fd50e8 commit 34d493a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions virtualizarr/tests/test_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from virtualizarr import ManifestArray, open_virtual_dataset
from virtualizarr.manifests.manifest import ChunkManifest
from virtualizarr.zarr import dataset_to_zarr, metadata_from_zarr_json, ZArray
from virtualizarr.zarr import ZArray, dataset_to_zarr, metadata_from_zarr_json


@pytest.fixture
Expand Down Expand Up @@ -88,6 +88,7 @@ def test_replace_partial():
assert result.shape == (2, 3)
assert result.chunks == (2, 3)


def test_replace_total():
arr = ZArray(shape=(2, 3), chunks=(1, 1), dtype=np.dtype("<i8"))
kwargs = dict(
Expand All @@ -102,4 +103,4 @@ def test_replace_total():
)
result = arr.replace(**kwargs)
expected = ZArray(**kwargs)
assert result == expected
assert result == expected
2 changes: 0 additions & 2 deletions virtualizarr/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
from typing import (
TYPE_CHECKING,
Any,
Dict,
Literal,
NewType,
Optional,
)

import numcodecs
Expand Down

0 comments on commit 34d493a

Please sign in to comment.