Skip to content

fix: remove stray XML tag in memory example and fix beta docstring#1459

Open
xodn348 wants to merge 1 commit intoanthropics:mainfrom
xodn348:fix/docs-typos-and-docstring
Open

fix: remove stray XML tag in memory example and fix beta docstring#1459
xodn348 wants to merge 1 commit intoanthropics:mainfrom
xodn348:fix/docs-typos-and-docstring

Conversation

@xodn348
Copy link
Copy Markdown

@xodn348 xodn348 commented Apr 27, 2026

Summary

Two small fixes in non-generated code (examples/ and src/anthropic/lib/):

  • examples/memory/basic.py: The XML format example in the system prompt had a mismatched </user> closing tag with no corresponding opening tag. Changed <xml><name>John Doe</name></user></xml><xml><name>John Doe</name></xml>

  • src/anthropic/lib/streaming/_beta_messages.py: BetaMessageStreamManager docstring incorrectly said "Wrapper over MessageStream" instead of "Wrapper over BetaMessageStream". The three sibling classes (MessageStreamManager, AsyncMessageStreamManager, BetaAsyncMessageStreamManager) all reference the correct class name — this was the only inconsistency.

Test plan

  • Verified both files are in non-generated directories per CONTRIBUTING.md
  • Changes are documentation-only — no behavioral impact

🤖 Generated with Claude Code

…reamManager docstring

- examples/memory/basic.py: The XML format example had a mismatched
  </user> closing tag with no corresponding opening tag
- _beta_messages.py: BetaMessageStreamManager docstring incorrectly
  referenced "MessageStream" instead of "BetaMessageStream"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xodn348 xodn348 requested a review from a team as a code owner April 27, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant