chore: stop support py3.9, now support py3.10-3.15#182
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates language_tool_python to drop Python 3.9 support (now EOL) and set Python 3.10 as the minimum supported version, aligning packaging metadata, CI, and internal typing/compat code accordingly.
Changes:
- Bump minimum supported Python to
>=3.10across packaging metadata and documentation. - Update CI matrix to stop testing Python 3.9 and add Python 3.15 on Ubuntu.
- Simplify typing/compat code by removing Python 3.9-era
Union/typing_extensions.TypeGuardworkarounds and adjusting lockfile markers.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Updates lock metadata/markers for >=3.10 and removes Python 3.9-era conditional packages/markers. |
README.md |
Updates stated supported/tested Python versions to >=3.10 / up to 3.15. |
pyproject.toml |
Sets requires-python = ">=3.10", updates classifiers, and simplifies mypy dependency marker. |
Makefile |
Removes runtime Python version gating for mypy; (contains a small recipe formatting issue). |
make.bat |
Removes runtime Python version gating for mypy on Windows batch script. |
language_tool_python/match.py |
Replaces Union[...] with ` |
language_tool_python/config_file.py |
Replaces Union[...] with ` |
language_tool_python/api_types.py |
Switches TypeGuard import to typing.TypeGuard for 3.10+. |
language_tool_python/_compat.py |
Removes TypeGuard compatibility export; keeps deprecated and toml_loads. |
.github/workflows/test.yml |
Removes Python 3.9 from matrix and adds Python 3.15 on Ubuntu. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
031357b to
bd12c19
Compare
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.
chore: stop support py3.9, now support py3.10-3.15
Why the pull request was made
To follow python releases and stop supporting python 3.9 as it is an EOL version since 2025, and it represents around 1.5% of the lib downloads.
By upgrading the minimum python version to 3.10, we ensure that our library can use the most recent versions of each dependencies, and of the type checker,
mypy, that doesn't support anymore python 3.9 since it's v2.Summary of changes
language_tool_pythonto 3.10 (and edited lib classifiers).TypeGuardfromtyping_extensions(can be imported fromtypingsince python 3.10).Unionusages (since python 3.10 fully support | operator for typing).uv.lockto remove old constraints due to python 3.9.Screenshots (if appropriate):
Not appropriate.
How has this been tested?
Applied local tests (including with python 3.15).
Resources
Python releases: https://www.python.org/downloads/
Types of changes
Checklist