Skip to content

Commit a77a926

Browse files
committed
Fix typing in test_stateful
1 parent 301c92f commit a77a926

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ module = [
355355
"tests.test_store.test_core",
356356
"tests.test_store.test_logging",
357357
"tests.test_store.test_object",
358+
"tests.test_store.test_stateful",
358359
]
359360
strict = false
360361

@@ -363,7 +364,6 @@ strict = false
363364
[[tool.mypy.overrides]]
364365
module = [
365366
"tests.test_metadata.*",
366-
"tests.test_store.test_stateful",
367367
"tests.test_store.test_wrapper",
368368
"tests.test_group",
369369
"tests.test_indexing",

tests/test_store/test_stateful.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616

1717

1818
@pytest.mark.filterwarnings("ignore::zarr.core.dtype.common.UnstableSpecificationWarning")
19-
def test_zarr_hierarchy(sync_store: Store):
19+
def test_zarr_hierarchy(sync_store: Store) -> None:
2020
def mk_test_instance_sync() -> ZarrHierarchyStateMachine:
2121
return ZarrHierarchyStateMachine(sync_store)
2222

2323
if isinstance(sync_store, ZipStore):
2424
pytest.skip(reason="ZipStore does not support delete")
2525

26-
run_state_machine_as_test(mk_test_instance_sync)
26+
run_state_machine_as_test(mk_test_instance_sync) # type: ignore[no-untyped-call]
2727

2828

2929
def test_zarr_store(sync_store: Store) -> None:
30-
def mk_test_instance_sync() -> None:
30+
def mk_test_instance_sync() -> ZarrStoreStateMachine:
3131
return ZarrStoreStateMachine(sync_store)
3232

3333
if isinstance(sync_store, ZipStore):
@@ -38,4 +38,4 @@ def mk_test_instance_sync() -> None:
3838
# It assumes that `set` and `delete` are the only two operations that modify state.
3939
# But LocalStore, directories can hang around even after a key is delete-d.
4040
pytest.skip(reason="Test isn't suitable for LocalStore.")
41-
run_state_machine_as_test(mk_test_instance_sync)
41+
run_state_machine_as_test(mk_test_instance_sync) # type: ignore[no-untyped-call]

0 commit comments

Comments
 (0)