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:e33f45af-0f0a-e7be-f6cf-d7a7494bac37 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CE64:2B9CDD:7AD2A2B:A785CB5:6A5E6B1A |
| html-safe-nonce | fc1640a3523a812778b2302dbaa189213c7cf5be4c309dadb141bccc10603caf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTY0OjJCOUNERDo3QUQyQTJCOkE3ODVDQjU6NkE1RTZCMUEiLCJ2aXNpdG9yX2lkIjoiODY1MzUxODI5MDM2MTkzNjY2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7250e87dc6d3767724f24c7bff37c6c9d7141d3574ce8e01810c1ee65c97ff23 |
| 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 | 0e33eedeef87e76d6b013d348ad423a9e503a88efa7080eec1ed2ddba90606bd |
| 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 | 15c56e0437fea28b3adfecf1764d0b42db481e03 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width