Merge to beta - #1856
Merged
Merged
Conversation
* Update generated code for v2323 and 1f0a7866ce5b5e12153c09a04349f91486b17d95 * Update generated code for v2324 and 6012b623b1c09ad54d466947da04511a042ee45a --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
* move to trusted publishing
* Replace source hash with telemetry UUID * minor tweaks * Add/adjust tests & CI
…1853) * Fix intermittent Windows test flake in async httpx integration tests BaseHTTPRequestHandler defaults to protocol_version "HTTP/1.0", which sets close_connection=True after every response. On Windows, the socket close can race with the async httpx client reading the response body, causing ReadError (Windows discards buffered TCP data on RST more aggressively than Linux). Setting protocol_version to "HTTP/1.1" keeps the connection alive, eliminating the race. The 30s timeout is a backstop against the handler blocking on readline if the client never closes the connection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude * Drain request body in mock handler for HTTP/1.1 keep-alive With protocol_version set to HTTP/1.1, the server keeps the connection alive and reads the next request from the same socket. If the POST body isn't consumed, those bytes remain in the buffer and get misinterpreted as the next HTTP request line. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude * Snapshot request attributes for HTTP/1.1 keep-alive handler reuse With keep-alive, multiple requests are handled by the same BaseHTTPRequestHandler instance. Storing `self` in the queue meant all entries shared the same mutable object whose .headers/.path/.command reflect only the last request. Capture a snapshot at handle time instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude # Conflicts: # CHANGELOG.md # VERSION # pyproject.toml # stripe/_api_version.py # stripe/_payment_intent.py # stripe/_subscription.py # stripe/_version.py # stripe/financial_connections/_account.py # stripe/params/__init__.py # stripe/params/_invoice_create_params.py # stripe/params/_invoice_modify_params.py # stripe/params/_invoice_update_params.py # stripe/params/_payment_intent_confirm_params.py # stripe/params/_payment_intent_create_params.py # stripe/params/_payment_intent_modify_params.py # stripe/params/_payment_intent_update_params.py # stripe/params/_subscription_create_params.py # stripe/params/_subscription_modify_params.py # stripe/params/_subscription_update_params.py # stripe/reserve/_hold.py # tests/test_integration.py
xavdid
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
Routine merge of master changes into the
betarelease channel.What?
betausing sdk-codegen's automerge tooling (tools/automerge/python-beta.yaml).tests/test_integration.py: accepted master's newRequestSnapshotclass (new utility not present on beta).See Also
n/a
Changelog
n/a — no user-facing changes (merge only).