DataDog / dd-trace-py

Datadog Python APM Client
https://ddtrace.readthedocs.io/
Other
506 stars 397 forks source link

fix(llmobs): fix document typing [backport 2.9] #9612

Closed github-actions[bot] closed 1 week ago

github-actions[bot] commented 1 week ago

Backport c293c762c56337e6cbe10223c9be82d47c91d382 from #9602 to 2.9.

Resolves #9600.

This PR addresses the incorrect typing hint in the ddtrace.llmobs.utils.py Documents constructor. The documents constructor currently accepts integer/float values for the document score field, but the typing specifies only string field values. The typing fix resolves this inconsistency.

Checklist

Reviewer Checklist

datadog-dd-trace-py-rkomorn[bot] commented 1 week ago

Datadog Report

Branch report: backport-9602-to-2.9 Commit report: e146e89 Test service: dd-trace-py

:white_check_mark: 0 Failed, 39449 Passed, 519 Skipped, 2h 35m 45.08s Total duration (3m 31.88s time saved) :hourglass: 1 Performance Regression

:hourglass: Performance Regressions vs Default Branch (1)