Skip to content

Commit 6b69b47

Browse files
alexkuzmikclaude
andcommitted
docs(dataset): document the ValueError raised by insert's argument checks
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 9c86938 commit 6b69b47

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • sdks/python/src/opik/api_objects/dataset

sdks/python/src/opik/api_objects/dataset/dataset.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,10 @@ def insert(
805805
batches that already succeeded stay persisted. Older Opik
806806
backends do not support parallel upload and fall back to a
807807
sequential one.
808+
809+
Raises:
810+
ValueError: If ``num_threads`` is not a positive integer, or
811+
``deduplication`` is not a bool.
808812
"""
809813
if isinstance(num_threads, bool) or not isinstance(num_threads, int):
810814
raise ValueError("num_threads must be a positive integer")

0 commit comments

Comments
 (0)