Skip to content

Commit c383d7d

Browse files
Apply ruff/Pylint preview rule PLR6104
PLR6104 Use `-=` to perform an augmented assignment directly
1 parent d9e1072 commit c383d7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/zarr/testing/stateful.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def delete_dir(self, data: DataObject) -> None:
308308
for node in self.all_groups | self.all_arrays:
309309
if node.startswith(path):
310310
matches.add(node)
311-
self.all_groups = self.all_groups - matches
312-
self.all_arrays = self.all_arrays - matches
311+
self.all_groups -= matches
312+
self.all_arrays -= matches
313313

314314
# @precondition(lambda self: bool(self.all_groups))
315315
# @precondition(lambda self: bool(self.all_arrays))

0 commit comments

Comments
 (0)