Merged
Conversation
384ceb4 to
a9eda94
Compare
Contributor
Author
|
🧪 Testing To try out this version of the SDK: Expires at: Thu, 30 Apr 2026 17:50:35 GMT |
7b39fc8 to
15328c8
Compare
d84f1e1 to
ad932b7
Compare
The sync transform path was updated to pass `exclude=getattr(data, "__api_exclude__", None)` to `model_dump()`, but the async path was missed. This caused `parsed_output` to leak into API requests when using the async client for multi-turn structured output conversations, resulting in a 400 error. Closes #1610
* add ability to test overloads are in sync on tool runner
* formt
* fix
* use typing_extensions.get_overloads() for broader python version support
Co-Authored-By: Claude Code (${CLAUDE_PROJECT_DIR}) <noreply@anthropic.com>
* fix import ordering for ruff
Co-Authored-By: Claude Code (${CLAUDE_PROJECT_DIR}) <noreply@anthropic.com>
* Update tests/lib/streaming/test_beta_messages.py
Co-authored-by: Robert Craigie <robert@craigie.dev>
* format
* format again
---------
Co-authored-by: Claude Code (${CLAUDE_PROJECT_DIR}) <noreply@anthropic.com>
Co-authored-by: Robert Craigie <robert@craigie.dev>
Note that we still want to run tests, as these depend on the metadata.
baeeed7 to
a2354ec
Compare
cea699c to
6c6d6cd
Compare
e19636f to
fa0e83c
Compare
fa0e83c to
477de32
Compare
* fix(memory): use restrictive file mode for memory files Extract _FILE_CREATE_MODE constant set to 0o600 (owner read/write only), replacing the previous 0o666. In environments with a permissive umask (e.g. Docker where umask is often 0o000), 0o666 would make memory files world-readable or even world-writable. * fix(client): update mkdir calls to use 0o700
* fix(memory): return resolved path from async _validate_path to close TOCTOU window The async _validate_path was returning the unresolved path while the sync version correctly returned the resolved path, allowing a symlink swap between validation and use. * test(memory): add test for async _validate_path symlink TOCTOU fix Verifies that the async _validate_path returns the resolved real path rather than the unresolved symlink path, closing the TOCTOU window. * fix: remove unused temp_directory parameter from test
477de32 to
cf345c9
Compare
cf345c9 to
817acee
Compare
packyg
approved these changes
Mar 31, 2026
Contributor
Author
|
🤖 Release is at https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0 🌻 |
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.
Automated Release PR
0.87.0 (2026-03-31)
Full Changelog: v0.86.0...v0.87.0
Features
Bug Fixes
Chores
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions