Skip to content

Commit

Permalink
Clarify the docstring of BaseStore.batch_remove
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin <[email protected]>
  • Loading branch information
2 people authored and diegogangl committed Dec 1, 2024
1 parent dba604f commit 7d112bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GTG/core/base_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def remove(self, item_id: UUID) -> None:
self.emit('removed', str(item_id))


def batch_remove(self,item_ids: List[UUID]):
"""Remove multiple items and their descendants at the same time. """
def batch_remove(self,item_ids: List[UUID]) -> None:
"""Remove multiple items, ensuring nothing gets deleted twice"""
for key in item_ids:
if key in self.lookup:
self.remove(key)
Expand Down

0 comments on commit 7d112bb

Please sign in to comment.