Skip to content

Support Python 3.15 - #5374

Merged
zzstoatzz merged 5 commits into
PrefectHQ:mainfrom
Kludex:support-python-3-15
Oct 2, 2026
Merged

zzstoatzz merged 5 commits into
PrefectHQ:mainfrom
Kludex:support-python-3-15

Conversation

@Kludex

@Kludex Kludex commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Python 3.15 currently cannot import Client because the installed beartype release imports a typing name removed in 3.15. FastMCP also does not advertise or test 3.14 and 3.15.

Require the compatible beartype prerelease only for 3.15 client and server installs, let the schema integration test use PyYAML's Python loader when its C extension is unavailable, and add both versions to package classifiers and CI. The import now works:

uv run --python 3.15 python -c "from fastmcp import Client; print(Client)"

Fixes #5373

🤖 Generated with Pi

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

🤖 Generated with Pi
@github-actions

This comment has been minimized.

@marvin-context-protocol marvin-context-protocol Bot added the bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. label Oct 1, 2026
@Kludex

Kludex commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

I have pydantic/monty#956 so we don't need to build monty in CI.

@zzstoatzz
zzstoatzz merged commit d7a3c93 into PrefectHQ:main Oct 2, 2026
18 checks passed
@Kludex

Kludex commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

This shouldn't have been merged yet 😬

@jlowin

jlowin commented Oct 3, 2026

Copy link
Copy Markdown
Member

Sorry @Kludex looks like we were a little overzealous there. I'm going to revert the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FastMCP client import fails on Python 3.15

3 participants