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:138631b6-8d12-aa97-8bb4-ae27b3a139ee |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CADE:22AFD6:791E0CE:A25FA4E:6A5E1A0F |
| html-safe-nonce | 38448fbbb0b5f18e9754899d57c8783c17a63a007bb4493fa708958666019b3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQURFOjIyQUZENjo3OTFFMENFOkEyNUZBNEU6NkE1RTFBMEYiLCJ2aXNpdG9yX2lkIjoiMjA2ODM3MTMxMzE0NjAwNDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d1db342cbda6ba620bb66b21a09060eb42d21609db14cc227ada677c48208a2f |
| 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 | 7a60e060dad2c24f72179d36247204b454da37845d1728020cd42046a433f87f |
| 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 | 0ae7f3ea7b1bb2f1f4623bb093bbf54cee05d830 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width