From 7d112bb11a8fad326453c3bbcb1337b689da504d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Gy=C3=B6rgyi?= Date: Sun, 17 Nov 2024 11:18:52 +0100 Subject: [PATCH] Clarify the docstring of BaseStore.batch_remove Co-authored-by: Kevin --- GTG/core/base_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GTG/core/base_store.py b/GTG/core/base_store.py index 36e27ee8c..b3b0c91ae 100644 --- a/GTG/core/base_store.py +++ b/GTG/core/base_store.py @@ -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)