⬆️ Add support for Python 3.14#14110
Merged
svlandeg merged 6 commits intofastapi:feature/py314from Sep 24, 2025
Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Member
Author
|
Note that Pydantic v1 won't be supported on Python 3.14: pydantic/pydantic#11613 (comment) |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
|
📝 Docs preview for commit 40f604d at: https://5c17757c.fastapitiangolo.pages.dev |
svlandeg
commented
Sep 24, 2025
| pyproject.toml | ||
| - name: Preinstall Pydantic 2.12.0a1 for Python 3.14 | ||
| if: matrix.python-version == '3.14' | ||
| run: uv pip install --pre "pydantic==2.12.0a1" |
Member
Author
There was a problem hiding this comment.
This can be removed when a stable Pydantic 2.12 release is available.
svlandeg
commented
Sep 24, 2025
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| allow-prereleases: true |
Member
Author
There was a problem hiding this comment.
This can be removed when Python 3.14 is officially available.
Member
Author
|
I'm going to merge this into a branch on the |
Member
Author
|
This was useful for experimentation & testing, but the actual PR that will be merged into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python 3.14.0 is supposed to be released on October 7th, 2 weeks from now.
We'll need to merge this PR with #14036
Note: probably requires fastapi/sqlmodel#1578 first