Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
akira committed Oct 26, 2024
1 parent 108f7d4 commit 0e2a60f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion python/langsmith/_internal/_background_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def _tracing_thread_handle_batch(
feedback = [it.item for it in batch if it.action == "feedback"]
try:
if use_multipart:
client.multipart_ingest(create=create, update=update, feedback=feedback, pre_sampled=True)
client.multipart_ingest(
create=create, update=update, feedback=feedback, pre_sampled=True
)
else:
client.batch_ingest_runs(create=create, update=update, pre_sampled=True)
except Exception:
Expand Down
4 changes: 1 addition & 3 deletions python/tests/integration_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,7 @@ def test_multipart_ingest_empty(

# make sure no warnings logged
with caplog.at_level(logging.WARNING, logger="langsmith.client"):
langchain_client.multipart_ingest(
create=runs_to_create, update=runs_to_update
)
langchain_client.multipart_ingest(create=runs_to_create, update=runs_to_update)

assert not caplog.records

Expand Down

0 comments on commit 0e2a60f

Please sign in to comment.