Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: anthropics/anthropic-sdk-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.86.0
Choose a base ref
...
head repository: anthropics/anthropic-sdk-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.87.0
Choose a head ref
  • 19 commits
  • 32 files changed
  • 5 contributors

Commits on Mar 31, 2026

  1. fix: honor __api_exclude__ in async transform path (#1612)

    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
    dtmeadows authored and stainless-app[bot] committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    e459cae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89db282 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a363d87 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c1540ac View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ea9e788 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8dc7de9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5b3f0bb View commit details
    Browse the repository at this point in the history
  8. add test to make sure runner overloads are in sync (#1414)

    * 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>
    3 people authored and stainless-app[bot] committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    ffc78d0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1920e30 View commit details
    Browse the repository at this point in the history
  10. chore(ci): skip lint on metadata-only changes

    Note that we still want to run tests, as these depend on the metadata.
    stainless-app[bot] committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    0eba0dd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7f8cf3c View commit details
    Browse the repository at this point in the history
  12. codegen metadata

    stainless-app[bot] committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    8a06a90 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    764ddba View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3b77b82 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4beda3c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6cdbc5f View commit details
    Browse the repository at this point in the history
  17. fix(memory): use restrictive file mode for memory files

    * 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
    dtmeadows authored and stainless-app[bot] committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    715030c View commit details
    Browse the repository at this point in the history
  18. fix(memory): return resolved path from async _validate_path

    * 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
    dtmeadows authored and stainless-app[bot] committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    6599043 View commit details
    Browse the repository at this point in the history
  19. release: 0.87.0

    stainless-app[bot] committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    ab0c446 View commit details
    Browse the repository at this point in the history
Loading