Skip to content

Commit fb1f32d

Browse files
committed
Lint fixes
1 parent 3d991f0 commit fb1f32d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/zarr/storage/_local.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import asyncio
4-
from collections.abc import Iterator
54
import contextlib
65
import io
76
import os
@@ -23,7 +22,7 @@
2322
from zarr.core.common import AccessModeLiteral, concurrent_map
2423

2524
if TYPE_CHECKING:
26-
from collections.abc import AsyncIterator, Iterable
25+
from collections.abc import AsyncIterator, Iterable, Iterator
2726

2827
from zarr.core.buffer import BufferPrototype
2928

tests/test_store/test_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_atomic_write_successful(tmp_path: pathlib.Path, exclusive: bool) -> Non
124124
@pytest.mark.parametrize("exclusive", [True, False])
125125
def test_atomic_write_incomplete(tmp_path: pathlib.Path, exclusive: bool) -> None:
126126
path = pathlib.Path(tmp_path) / 'data'
127-
with pytest.raises(RuntimeError):
127+
with pytest.raises(RuntimeError): # noqa: PT012
128128
with _atomic_write(path, 'wb', exclusive=exclusive) as f:
129129
f.write(b'a')
130130
raise RuntimeError

0 commit comments

Comments
 (0)