Uh oh!
There was an error while loading. Please reload this page.
fix: support PEP 604 structured output unions - #2592
Conversation
a2d08e8 to
cc2e919Comparehe-yufeng
commented
May 14, 2026
Pushed a follow-up for the pre-commit pyright failure: the regression helper now uses typed dict/list generics instead of bare
|
Swcmb
commented
May 19, 2026
Thanks for working on this fix! I'm the original reporter of #2591 — great to see the community jumping on this so quickly. I noticed that #2599 (by @MukundaKatta) has already been merged to address the same PEP 604 union issue. It might be worth coordinating with that fix to avoid conflicts. Appreciate the effort! 🙌 |
he-yufeng
commented
May 20, 2026
he-yufeng
commented
Jun 10, 2026
Closing this during backlog cleanup. The python-sdk queue has too many open PRs, and this older/no-human-signal item is lower priority than the remaining PRs that have recent validation, review discussion, or clearer current value. I can reopen or refresh it if maintainers want this specific change. |
Summary
(annotation, ...)field formdict | list | strreturn annotationsFixes#2591.
To verify
uv run pytest tests\server\mcpserver\test_func_metadata.py -q --basetemp .tmp\pytest -p no:cacheprovideruv run ruff check src\mcp\server\mcpserver\utilities\func_metadata.py tests\server\mcpserver\test_func_metadata.pyuv run ruff format --check src\mcp\server\mcpserver\utilities\func_metadata.py tests\server\mcpserver\test_func_metadata.pygit diff --check