Skip to content

Drop stale superset-leniency note from ElicitResult.content docstring#2884

Open
maxisbey wants to merge 1 commit into
mainfrom
fix/elicitresult-content-docstring
Open

Drop stale superset-leniency note from ElicitResult.content docstring#2884
maxisbey wants to merge 1 commit into
mainfrom
fix/elicitresult-content-docstring

Conversation

@maxisbey

Copy link
Copy Markdown
Contributor

Removes a stale paragraph from the ElicitResult.content docstring in the superset monolith.

Motivation and Context

The docstring claimed the None arm in the content value union was superset-only leniency and that "the schema-exact surface types declare no null arm." As of #2849, both committed per-version packages (v2025_11_25 and v2026_07_28) declare | None in their generated ElicitResult.content value union, so the note is now incorrect.

How Has This Been Tested?

Docstring-only change. ruff format, ruff check, and pyright pass on the touched file; pre-commit hooks pass.

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Follow-up nit on #2849.

AI Disclaimer

The paragraph claimed the null arm in the content value union was
superset-only leniency not present in the schema-exact per-version
types. As of #2849 both v2025_11_25 and v2026_07_28 declare the null
arm in their generated ElicitResult.content, so the note is wrong.
@maxisbey maxisbey marked this pull request as ready for review June 16, 2026 19:29
@maxisbey maxisbey enabled auto-merge (squash) June 16, 2026 19:31
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