Repository navigation
refactor(iast): type JSON taint wrapper - #21590
florentinl wants to merge 2 commits into
Conversation
Co-authored-by: florentinl <101594032+florentinl@users.noreply.github.com>
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
The wrapper’s annotations match its callers, and the static reviewer confirmed that executable logic is unchanged after removing annotations. No actionable regression was identified.
🤖 Bits Code Review · Commit f966492
🎉 All green!🧪 All tests passed 🔗 Commit SHA: f966492 | Docs | View more details | Give us feedback! |
BenchmarksBenchmark execution time: 2026-11-09 09:12:49 Comparing candidate commit f966492 in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 577 metrics, 10 unstable metrics, 1 flaky benchmarks without significant changes.
|
Description
Ap-custom-agent
The JSON taint wrapper lacks checked function contracts, allowing typing errors to go unnoticed.
Changes
Testing
Four existing JSON and simplejson encoding tests pass on Python 3.9. The module passes mypy with its exemption removed; the tests do not directly exercise the fallback call.
Risks
Low: the annotations do not change the wrapper's control flow.
Additional Notes
No release note is needed for an internal typing-only change.
PR by Bits - View session in Datadog
Comment @DataDog to request changes