From 05c8b6e20899c5254d8a2bf1de6e60749ba2f1a7 Mon Sep 17 00:00:00 2001 From: Spike Lu Date: Thu, 22 Aug 2024 10:03:32 -0700 Subject: [PATCH] revise vairable name --- chromadb/test/property/strategies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chromadb/test/property/strategies.py b/chromadb/test/property/strategies.py index 3074e68886cd..681b2a222e7f 100644 --- a/chromadb/test/property/strategies.py +++ b/chromadb/test/property/strategies.py @@ -459,7 +459,7 @@ def recordsets( min_metadata_size: int = 0, max_metadata_size: Optional[int] = None, # ids can only be optional for add operations - for_add: bool = False, + can_ids_be_empty: bool = False, ) -> RecordSet: collection = draw(collection_strategy) ids = list( @@ -467,7 +467,7 @@ def recordsets( ) # This probablistic event is used to mimic user behavior when they don't provide ids - if for_add and np.random.rand() < 0.5: + if can_ids_be_empty and np.random.rand() < 0.5: ids = [] n = len(ids)