Title: fix: wrap pipe union structured outputs by he-yufeng · Pull Request #2669 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: wrap pipe union structured outputs by he-yufeng · Pull Request #2669 · modelcontextprotocol/python-sdk
X Title: fix: wrap pipe union structured outputs by he-yufeng · Pull Request #2669 · modelcontextprotocol/python-sdk
Description: Summary use Pydantic's explicit (annotation, ...) field form for wrapped structured outputs add a regression test for PEP 604 unions that include container types Fixes #2591 To verify .\.venv\Scripts\python.exe -m pytest tests\server\mcpserver\test_func_metadata.py::test_structured_output_generic_types -q .\.venv\Scripts\python.exe -m pytest tests\server\mcpserver\test_func_metadata.py -q .\.venv\Scripts\python.exe -m ruff check src\mcp\server\mcpserver\utilities\func_metadata.py tests\server\mcpserver\test_func_metadata.py .\.venv\Scripts\python.exe -m py_compile src\mcp\server\mcpserver\utilities\func_metadata.py tests\server\mcpserver\test_func_metadata.py git diff --check
Open Graph Description: Summary use Pydantic's explicit (annotation, ...) field form for wrapped structured outputs add a regression test for PEP 604 unions that include container types Fixes #2591 To verify .\.ven...
X Description: Summary use Pydantic's explicit (annotation, ...) field form for wrapped structured outputs add a regression test for PEP 604 unions that include container types Fixes #2591 To verify .\...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2669
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bf7b9cdb-4b2d-9d1d-444a-82707b11a5e9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CFA6:3F705B:3C16963:51C762D:6A5DEA64 |
| html-safe-nonce | d3a835b72d9ad44fce0f5817596fa4593e2bff6e1663e66fae695b40e1975baf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkE2OjNGNzA1QjozQzE2OTYzOjUxQzc2MkQ6NkE1REVBNjQiLCJ2aXNpdG9yX2lkIjoiMjc0MjI5Nzg0OTYxMDc1ODc1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bc535d69989cc2d97dda4e286793a2176549e7dbd8dcb500827f40f2853c6d03 |
| hovercard-subject-tag | pull_request:3735378580 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2669/files |
| twitter:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| og:image:alt | Summary use Pydantic's explicit (annotation, ...) field form for wrapped structured outputs add a regression test for PEP 604 unions that include container types Fixes #2591 To verify .\.ven... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f068985268f2a1e272fe40dd37a3352a16d337d57ec570e56da6c2346e179f59 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e36408244bcd0ded36f1cfba5db8e97f99c2117e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width