diff --git a/chromadb/api/types.py b/chromadb/api/types.py index 7c19c2cb0a93..edde00361d60 100644 --- a/chromadb/api/types.py +++ b/chromadb/api/types.py @@ -52,7 +52,7 @@ def maybe_cast_one_to_many_ids(target: Optional[OneOrMany[ID]]) -> Optional[IDs] # No target if target is None: return None - + if isinstance(target, str): # One ID return cast(IDs, [target])