Update python versions (drop 3.9, add 3.14)#1256
Merged
kingbuzzman merged 11 commits intomainfrom Dec 1, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the supported Python versions by dropping Python 3.9 support (raising the minimum to 3.10) and adding official support for Python 3.14. The changes modernize type annotations to use Python 3.10+ syntax throughout the codebase.
- Drops Python 3.9 and sets minimum version to 3.10
- Adds Python 3.14 support with CI testing
- Modernizes type annotations to use Python 3.10+ union syntax (PEP 604)
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tox.ini | Updated test environments to include py314 and remove py39 |
| pyproject.toml | Updated requires-python to >=3.10 and classifiers to reflect Python 3.10-3.14 support |
| .github/workflows/main.yml | Added Python 3.14 test jobs, removed Python 3.9 jobs, updated PyPy version to 3.10 |
| pytest_django/fixtures.py | Modernized type annotations: moved Callable import to collections.abc, replaced Optional[Union[...]] with pipe operator syntax |
| pytest_django/asserts.py | Consolidated TYPE_CHECKING imports and moved Callable import to collections.abc |
| docs/changelog.rst | Added entry for Python 3.14 support in v4.12.0 |
| README.rst | Updated minimum Python version from 3.9 to 3.10 in documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
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.
Drop Python 3.9 support and raise minimum version to 3.10. Add official Python 3.14 support with CI testing.