Skip to content

Commit 9c5314c

Browse files
committed
Fix typing in test_stateful
1 parent 8cfaac8 commit 9c5314c

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
@@ -356,14 +356,14 @@ module = [
356356
"tests.test_store.test_core",
357357
"tests.test_store.test_logging",
358358
"tests.test_store.test_object",
359+
"tests.test_store.test_stateful",
359360
]
360361
strict = false
361362

362363
# TODO: Move the next modules up to the strict = false section
363364
# and fix the errors
364365
[[tool.mypy.overrides]]
365366
module = [
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)