diff --git a/python/langsmith/client.py b/python/langsmith/client.py index a72dedf3c..391f2be74 100644 --- a/python/langsmith/client.py +++ b/python/langsmith/client.py @@ -1824,8 +1824,8 @@ def update_run( if attachments: data["attachments"] = attachments use_multipart = ( - self.tracing_queue is not None - or self.compressed_runs_buffer is not None + (self.tracing_queue is not None + or self.compressed_runs_buffer is not None) # batch ingest requires trace_id and dotted_order to be set and data["trace_id"] is not None and data["dotted_order"] is not None