Skip to content

Commit 602dca9

Browse files
Apply ruff/pygrep-hooks rule PGH003
PGH003 Use specific rule codes when ignoring type issues
1 parent 1efa2c7 commit 602dca9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/zarr/v2/storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def rmdir(store: StoreLike, path: Path = None):
161161
this will be called, otherwise will fall back to implementation via the
162162
`Store` interface."""
163163
path = normalize_storage_path(path)
164-
if hasattr(store, "rmdir") and store.is_erasable(): # type: ignore
164+
if hasattr(store, "rmdir") and store.is_erasable():
165165
# pass through
166166
store.rmdir(path)
167167
else:
@@ -496,7 +496,7 @@ def _init_array_metadata(
496496

497497
# use null to indicate no filters
498498
if not filters_config:
499-
filters_config = None # type: ignore
499+
filters_config = None
500500

501501
# initialize metadata
502502
_compressor = compressor_config

tests/v3/test_group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def test_group_members(store: Store, zarr_format: ZarrFormat) -> None:
9393
members_expected["subgroup"] = group.create_group("subgroup")
9494
# make a sub-sub-subgroup, to ensure that the children calculation doesn't go
9595
# too deep in the hierarchy
96-
subsubgroup = members_expected["subgroup"].create_group("subsubgroup") # type: ignore
97-
subsubsubgroup = subsubgroup.create_group("subsubsubgroup") # type: ignore
96+
subsubgroup = members_expected["subgroup"].create_group("subsubgroup")
97+
subsubsubgroup = subsubgroup.create_group("subsubsubgroup")
9898

9999
members_expected["subarray"] = group.create_array(
100100
"subarray", shape=(100,), dtype="uint8", chunk_shape=(10,), exists_ok=True

0 commit comments

Comments
 (0)