Skip to content

Commit 4e54b23

Browse files
committed
minor fix
Signed-off-by: asim <[email protected]>
1 parent 0de48ed commit 4e54b23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ def test_create(memory_store: Store) -> None:
5151

5252
# create array with float shape
5353
with pytest.raises(TypeError):
54-
z = create(shape=(400.5, 100), store=store, overwrite=True)
54+
z = create(shape=(400.5, 100), store=store, overwrite=True) # type: ignore [arg-type]
5555

5656
# create array with float chunk shape
5757
with pytest.raises(TypeError):
58-
z = create(shape=(400, 100), chunks=(16, 16.5), store=store, overwrite=True)
58+
z = create(shape=(400, 100), chunks=(16, 16.5), store=store, overwrite=True) # type: ignore [arg-type]
5959

6060

6161
# TODO: parametrize over everything this function takes
@@ -200,7 +200,7 @@ def test_save(store: Store, n_args: int, n_kwargs: int) -> None:
200200
assert isinstance(array, Array)
201201
assert_array_equal(array[:], data)
202202
else:
203-
save(store, *args, **kwargs)
203+
save(store, *args, **kwargs) # type: ignore [arg-type]
204204
group = open(store)
205205
assert isinstance(group, Group)
206206
for array in group.array_values():
@@ -1104,13 +1104,13 @@ async def test_metadata_validation_error() -> None:
11041104
MetadataValidationError,
11051105
match="Invalid value for 'zarr_format'. Expected '2, 3, or None'. Got '3.0'.",
11061106
):
1107-
await zarr.api.asynchronous.open_group(zarr_format="3.0")
1107+
await zarr.api.asynchronous.open_group(zarr_format="3.0") # type: ignore [arg-type]
11081108

11091109
with pytest.raises(
11101110
MetadataValidationError,
11111111
match="Invalid value for 'zarr_format'. Expected '2, 3, or None'. Got '3.0'.",
11121112
):
1113-
await zarr.api.asynchronous.open_array(shape=(1,), zarr_format="3.0")
1113+
await zarr.api.asynchronous.open_array(shape=(1,), zarr_format="3.0") # type: ignore [arg-type]
11141114

11151115

11161116
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)