Skip to content

Commit b155426

Browse files
author
Leo Ji
committed
fix: use 'not in' for ruff E713
Made-with: Cursor
1 parent 22002e4 commit b155426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/storage/_zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _dedup_central_directory(self) -> None:
135135
*last* (most recent) entry for every filename so that the on-disk central
136136
directory is clean.
137137
"""
138-
if not self._zf.mode in ("w", "a", "x"):
138+
if self._zf.mode not in ("w", "a", "x"):
139139
return
140140
seen: set[str] = set()
141141
deduped: list[zipfile.ZipInfo] = []

0 commit comments

Comments
 (0)